[R] Odp: Help barplots
petr.pikal at precheza.cz
Tue Jun 1 13:26:07 CEST 2010
r-help-bounces at r-project.org napsal dne 01.06.2010 13:01:38:
> Dear All,
> I am newbie to R, and I wanted to plot a barplots with R and in such a
> that It will also show me position which I can plot on the bar line.
> Here is my code that I am using to plot,
> > chromosome <- c(40.2, 35.6, 36.1, 29.6, 31, 29.6, 31, 29.4, 28.2, 23,
> >barplot (chromosome, col="purple", xlab="Oryza sativa Chromosomes",
> = NA, space = 5, ylim = c(0,45))
> I wanted to mark the position say on chromosome 1 (40.2) I need to mark
> and on other also.
I do not understand what you want? What is 10.2
maybe names.arg is what you want.
barplot (chromosome, col="purple", xlab="Oryza sativa Chromosomes", border
= NA, space = 5, ylim = c(0,45), names.arg=chromosome, axes=F)
> I also want to set the scale of y axis from 0,5,10,15,20,25,30,35,40,45
> gap of 5 instead of 10.
use axes=F and
> please help me to solve my query....gurus.
> Thank you
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help