[R] How to only show two numbers on bar_plot with ggplot

Ana Marija @okov|c@@n@m@r|j@ @end|ng |rom gm@||@com
Fri May 22 20:52:27 CEST 2020


Hello,

I made the plot in attach via:

ed<-ggplot(e) +
  geom_bar(aes(x = ESRD, fill =
factor(pheno,labels=c("control","case"))))+scale_fill_manual(values=c("#56B4E9","#E7B800"))+labs(fill="pheno")

ed

How do I show only 1 and 2 on x axis?

Thanks
Ana

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-05-22 at 1.50.21 PM.png
Type: image/png
Size: 49767 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20200522/351f1b95/attachment.png>


More information about the R-help mailing list