r - How to make the points look larger in ggplot -


ggplot(data_exp, aes(x = transaction, y = exp, size = count, colour = class, label = label)) + geom_point(alpha = 0.5) +  geom_text(colour = "black", vjust = 0, nudge_y = 0.5, size = 3, fontface = "bold") 

i want make points in plot larger, try make size becomes count*1000, nothing seems change.

plot

use size aesthetic in geom_point

an example;

library(ggplot2) data(mtcars) # increase point size based on variable value p <- ggplot(mtcars, aes(wt,mpg)) p + geom_point(aes(size=wt*100)) 

enter image description here


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -