[R] plot() change unit length

jim holtman jholtman at gmail.com
Mon Aug 4 18:58:54 CEST 2008


You can always create the axis yourself:

x <- seq(-60,80)
plot(x, seq_along(x), xaxt='n')
axis(1, at=pretty(x,10))



On Mon, Aug 4, 2008 at 12:47 PM, Qian R <qianrstudy at yahoo.com> wrote:
>
>
>
>
>
>
>
>
> I am try to plot a data frame, and encounter some difficulties.
>
> my x axis range is from -60 to 80 and unit length is 10
> so x axis looks like
>
> -60, -40, -20, ......, 40,60,80
>
> But I want chang unit length from 10 to 5
>
> -60, -50, -40, ......, 60,70,80
>
> Does anyone know how to do it?
>
> Thanks
>
>
>
>
>        [[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 guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?



More information about the R-help mailing list