Search code examples
rgraphicsdata-representation

Graphical representation in R: 2 as axes and 1 as volume


everybody.

I am writing this question because I need your help to do a graphical representation in R. I would like to do a graphic as a coordinate system (two variables) and another variable representing the volume (size) of the points.

You can see an example:pxfolioplotbcgmatrix

Thank you!


Solution

  • Try ?symbols function

    x <- 1:5
    y <- 5:1
    r <- seq(2, 10, 2)
    
    symbols(x, y, circles=r, fg="white", bg="red")
    

    enter image description here