Is there an equivalent of scale_color_manual() that would allow me to manually adjust a geom_point pointsize? I have several factors in my dataset, and one of them I would like to plot as a small point while the rest I'd like to set to a larger size.
On request, a reproducible dataset:
frame <- c(1:50)
x <- runif(50, min=0, max=500)
y <- runif(50, min=0, max=500)
behaviorsmini <- c("NA", "B", "L", "C", "E")
behaviors <- sample(behaviorsmini, size=50, replace=TRUE)
df <- as.data.frame(cbind(frame, x, y, behaviors))
ggplot(df, aes(x=as.numeric(x), y=as.numeric(y), color=behaviors, size=behaviors))+
geom_point()+
theme_classic()
Within the 'behaviors' group, I'd like to set the NA to some small size, and the rest of the behaviors to a large size. Right now the size argument is just assigning pointsizes without control. Thanks!