Do you just want the tick intervals on the axis to be changed? Or do you want more bars in the histogram itself?
If the latter, then look at the breaks argument to hist. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of livia > Sent: Wednesday, September 12, 2007 10:25 AM > To: [EMAIL PROTECTED] > Subject: [R] Tick intervals > > > Hi, I would like to plot a histogram with the following > codes, and I would like to make the tick intervals smaller. I > tried to add "lab=c(1,1,12)", but nothing changes. > > > par(mfrow=c(1,1),font=1, cex=0.8) > hist (data1, seq(-0.01,0.3,0.01),freq = FALSE, > main="Figure1.",xlab="return",lab=c(1,1,12)) > lines(density(data1), col="blue") > > > Could anyone give me sone advice? > Many thanks, > -- > View this message in context: > http://www.nabble.com/Tick-intervals-tf4430457.html#a12639110 > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > ______________________________________________ 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.