[R] graphing help
tom wright
tom at maladmin.com
Tue Nov 22 16:15:36 CET 2005
a<-c(1:10)
plot(a,ylim=c(10,1))
On Tue, 2005-22-11 at 15:03 -0500, Anthony Pitts wrote:
> Hello all,
>
> Does anyone know how to make R graph the x-axis in descending order? I am all
> set in creating a vertical bar chart using either the plot or the xychart (in
> lattice), but I need the x-axis in descending order. I have tried resorting
> the data but apparently R automatically graphs the x-axis in ascending order.
> I have multiplied the data used for the x-axis by -1 and this works but now
> the tick-mark labels are negative. So does anyone know how to 1) make R graph
> the x-axis in descending order or 2) change the tick labels so I can get rid
> of the negative signs?
>
> Thanks in advance for your help
>
> Tony
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list