I would like to specify the size of a point based on the value of a particular field, however I'd like to be able to have a size scale that spans across a series of independently generated charts.
Essentially I would like to be able to say that a value of X units should be displayed with a point of size Y.
An example is below
df_1 <- data.frame(x=c(1:3),y=rep(1,3),size=10*c(1:3))
df_2 <- data.frame(x=c(1:3),y=rep(1,3),size=100*c(1:3))
df_1_plot <- ggplot(df_1,aes(x=x,y=y,size=size)) +
df_2_plot <- ggplot(df_2,aes(x=x,y=y,size=size)) +
df_1_plot will produce a chart on a different scale to df_2_plot, although df_2 size field is 10 times the size of df_1's:
I'm looking for the point size in the df_2_plot to be 10 times larger than the points in the df_1_plot.