The data is just one column in excel. I put another column next to it full of "1". That seemed to help. So, basically I don't have a y column. It is more of a frequency percent chart of three proteins. I would like them to overlap on one bar. Can you help me?
This is the code I have used:
M <- read.csv('M.csv', header = TRUE)
library(ggplot2)
ggplot(data = M) +
geom_bar(mapping = aes(x = Protein, y = ..prop.., group = 1), stat = "count")+
scale_y_continuous(labels = scales::percent_format())+
xlab("") +
ylab("Percent") +
ggtitle("Colocalization between Mi-2 and Akirin compared to isolated Mi-2 and AK")
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: