I want to specific the shape of three kinds of points in my plot using ggplot2. However, no matter how I change the shape numbers, it doesn't work, the shapes of points been constantly set automatically.
Here is my code (the shape numbers are in the first line):
shape <- c("min"="1","max"="2",mean="3")
fill <- c("Rate"="#25c25b")
ggplot (data, aes(x=order))+
geom_rect(aes(xmin=order-0.1, xmax=order+0.1, ymin = min, ymax=max), alpha=0, color="black")+
geom_bar(aes(y=rate, fill="Rate"),stat="identity", alpha=0.3, width=0.5)+
geom_point(aes(y=min, shape="min"), size=5)+
geom_point(aes(y=mean, shape="mean"), size=5)+
geom_point(aes(y=max, shape="max"), size=5)+
labs(shape = "F0", fill = "Rate")