Hi all, I'm a newbie with R and with a very basic question. Can I define the minor unit for ylim? For example, I have a y scale ranging from 1 to 14, jumping automatically every 2 units, but I want it to jump 1 unit at a time...is it possible? I tried something like>boxplot(bla[,1], xlim=c(1,15,1)and it didn't obbey... :( any suggestion?? Cheers from Portugal! Patrícia -- View this message in context: http://n4.nabble.com/Basic-doubt-on-ylim-tp2017891p2017891.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]]
Hi, Take a look at ?par and especially the xaxp argument. I'm not quite sure, but if it's not this one, it's probably another one in par() HTH, Ivan Le 20-Apr-10 21:21, poliveira a écrit :> Hi all, > > I'm a newbie with R and with a very basic question. > Can I define the minor unit for ylim? For example, I have a y scale ranging > from 1 to 14, jumping automatically every 2 units, but I want it to jump 1 > unit at a time...is it possible? I tried something like > > >> boxplot(bla[,1], xlim=c(1,15,1) >> > and it didn't obbey... > :( any suggestion?? > > Cheers from Portugal! > PatrÃcia > > > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Hi r-help-bounces at r-project.org napsal dne 20.04.2010 21:21:26:> > Hi all, > > I'm a newbie with R and with a very basic question. > Can I define the minor unit for ylim? For example, I have a y scaleranging> from 1 to 14, jumping automatically every 2 units, but I want it to jump1> unit at a time...is it possible? I tried something like > > >boxplot(bla[,1], xlim=c(1,15,1)Maybe changing to boxplot(bla[,1], ylim=c(1,15,1) Regards Petr> > and it didn't obbey... > :( any suggestion?? > > Cheers from Portugal! > Patr??cia > -- > View this message in context: http://n4.nabble.com/Basic-doubt-on-ylim- > tp2017891p2017891.html > Sent from the R help mailing list archive at Nabble.com. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
On 04/21/2010 05:21 AM, poliveira wrote:> > Hi all, > > I'm a newbie with R and with a very basic question. > Can I define the minor unit for ylim? For example, I have a y scale ranging > from 1 to 14, jumping automatically every 2 units, but I want it to jump 1 > unit at a time...is it possible? I tried something like > >> boxplot(bla[,1], xlim=c(1,15,1) > > and it didn't obbey... > :( any suggestion?? >Hi Patricia, This seems to be the "intelligent spacing" problem that often appears on the list. If you ask for more than about eight labels on the default sized plotting device without also asking for a smaller font size (cex), R will tidy them up by ignoring some. You can force the axis labels to some extent by using: axis(2,1:15) If you find that your labels begin to overlap, have a look at the staxlab function in the plotrix package. Jim