Entering edit mode
5.5 years ago
english.server
▴
290
Hi all!
I want to map size and fill to columns of my dataframe but I cant get the fill working. Thanks.
library(ggplot2)
a= data.frame(matrix(rnorm(24),6))
ggplot(a, (aes (X1,X2, size=X3,fill= X4)))+ geom_point()+coord_flip()+scale_fill_gradientn(colours = c('blue', 'red'), values=c(0, 1))