Re: [R] Graph with ggplot2.

2015-03-25 Thread JLucke
ylim(0%,100%) is not valild. It should be ylim(0,100). Jeff Newmiller Sent by: "R-help" 03/25/2015 11:14 AM To "BenedettaB24 ." , "r-help@r-project.org" , cc Subject Re: [R] Graph with ggplot2. It is difficult to read your code because the HTML for

Re: [R] Graph with ggplot2.

2015-03-25 Thread Thierry Onkelinx
You need to define limits as defined in the data. ylim(0, 1) instead of ylim(0%, 100%) ylim(0%, 100%) is incorrect R syntax. ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance

Re: [R] Graph with ggplot2.

2015-03-25 Thread S Ellison
> i used this command three times, clearly not exactly this, if it's stopped working ... > but now is not working, the error reported is: > Error: unexpected ')' in "ggplot(percent, aes(x=factor(Cell.lines), > y=Percentage, > vjust=-0.5, fill=Prostate )) + geom_bar(colour="black", stat="identity

Re: [R] Graph with ggplot2.

2015-03-25 Thread Jeff Newmiller
It is difficult to read your code because the HTML format messes it up, but I think your ggplot function call is missing a parenthesis between fill=Prostate and the + sign. --- Jeff NewmillerThe ..

[R] Graph with ggplot2.

2015-03-25 Thread BenedettaB24 .
Dear all, I want to run ggplot2 in one of my file. I do this: mergefile<- read.csv("path of my file/name.csv") library(ggplot2) to import my library ggplot(percent, aes(x=factor(Cell.lines), y=Percentage, vjust=-0.5, fill=Prostate )) + geom_bar(colour="black", stat="identity", position=positi