I am trying to customized the geom_point plot and I've attached my dataset example below.
# Example of the data
library(ggplot2)
coverage = data.frame("category" = c("A","A","B","B","C","C"), "position" = c(1,4,1,3,2,3), "width" = c(10,4,5,7,2,20))
ggplot(test1, aes(x=position, y=width)) + geom_point(colour="red", size=10, shape=20, alpha=1/3)
when I executed this code, I obtained following images
As you can see the above image, if the position information overlapped, the width value represent the same position, this image was not reflected "category" variable. so, I want to take a image that ordered by "category" value like this images.
How can I setting the options?