[R] Axis manipulation in Stackpoly (Plotrix)
jim at bitwrit.com.au
Fri Dec 23 11:53:41 CET 2011
On 12/23/2011 07:52 AM, Ben Neal wrote:
> Have made a stacked area plot, but now want to manipulate the x axis: make in even increments (50) in order to suppress the tick marks (forming solid bar under plot). However, the plot functions do not seem to work, and I cannot find documentation for use of xat in stackpoly.
> This is a time series of data covering 579 years, and has been successfully converted from zoo to matrix. Data plotting fine, jsut want to change axis -
> stackpoly(CaribMatrix, stack=TRUE, xlab="Year",ylab="Catch in tons", xaxlab=(1250:2008),
> main="Historical Florida reef fisheries catch by sector", axis4="FALSE")
> Any assistance appreciated! Thanks very much, Benjamin P Neal, Scripps Inst. of Oceanogrpahy
In the stackpoly function, you can specify the positions of the axis
ticks (xat=...) and the labels for those positions (xaxlab=...). You
don't seem to have supplied the "x" values, so the values in CaribMatrix
will be placed display at 1:dim(CaribMatrix). I'll have to make up
This seems to give a reasonable plot for me.
More information about the R-help