[R] Change breaks x axis in plot

ruipbarradas at sapo.pt ruipbarradas at sapo.pt
Thu Nov 19 22:42:59 CET 2015


Hello,

Maybe something like this?

plot(1:2, xaxp = c(1,2,1))

See ?par.

Hope this helps,

Rui Barradas
 

Citando Luis Fernando García <luysgarcia at gmail.com>:

> I have the following graph:
> my problem is the scale, I just need it to show the values for 1 and 2 and
> remove the intermediate values (1.2,1.4,1.6,1.8). How could I do it? I'm,
> attaching the script code for the plot.
>
> Thanks in advance
>
> ###AV=mean values
> ##SD=Sd values
>
> plot(D ~ ferre$Cantidad, type="n",ylim=range(0:1.5))
> points(AV, pch = 16, cex = 1.5)
> arrows(x0 = AV$Group.1, y0 = AV$x, x1 = AV$Group.1, y1 =AV$x + SD$x, angle
> = 90)
> arrows(x0 = AV$Group.1, y0 = AV$x, x1 = AV$Group.1, y1 =AV$x - SD$x, angle
> = 90)
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide  
> http://www.R-project.org/posting-guide.htmland provide commented,  
> minimal, self-contained, reproducible code.

 

	[[alternative HTML version deleted]]



More information about the R-help mailing list