Instead of plotting "points" as different sizes I would like to plot
those points as "circle", whose width of the circumference would be
determined by some other variable (which would determine the size of
the points). And of course another option to determine the color of
the circumference would be great.
Can I do this with ggplot? I have gone through the online
documentation however could not find anything such.
Thanks for your time
ggplot(thedata) +
aes(x,y,size=radius,color=factor(radius)) + # x,y coordinates
geom_point(shape=1) #open circle
ggplot(sl.df) + aes(x,y) +
geom_point(size=range,alpha=0.2,color=factor(range)) +
coord_equal(ratio=1)
You may need to leave behind the simplicity of shapes/symbols you need
to switch to constructing real geometric shapes. You can use geom_path
to draw open polygons with size controlling the line thickness.
However, I believe you will have to produce the shapes as data. This
means creating a path of segments such as you would if you wanted to
trace a circle. A function that takes a centerpoint, a radius, and a
segment density and returns a set of coordinates may be in order.