[R] Symbol size in plot relative to axis scale and not the graphics window

Hey, Kirsty K.L.Hey at warwick.ac.uk
Thu Feb 16 12:39:06 CET 2012


Dear all,

I am wanting to plot points that have a defined absolute size relative
to the scale of the axis.
For example, the following gives me a plot with sizes relative to the
defined "size" variable but are not of the specified absolute size
(relative to the axis)

coords <- as.data.frame(matrix(c(c(0,0),c(5,5),c(0,3)), 3, 2))

coords$radius <- c(1.4112, 2.34, 1.4573)
coords$size <- 2*coords$radius

plot(coords[,1:2], cex=coords[,4])


Any help would be much appreciated

Regards,
Kirsty



More information about the R-help mailing list