[R] Wireframe, custom x-axis values

Peter Ehlers ehlers at ucalgary.ca
Mon Jun 6 18:30:45 CEST 2011


On 2011-06-06 06:33, Rbjørn Nicolaisen wrote:
>
> Hi,
>
> Im plotting some data with wireframe() like so:
>
> wireframe(result ~ u * r, myData, scales=list(arrows=FALSE))
>
> However, I would really like to display something different for the displayed values of "u" rather than the actual values.
> This is because my u-values are a sequence of quantiles of myData, and I would like to display the quantiles used (e.g. "0.8   0.85   0.9   0.95")  instead of the actual values of these quantiles, since this is easier to relate to for a viewer. This information is accessible in myData in a variable, "qnt".
>
> I've tried meddling around with "axis", "label" and "at" in scales=list(), but i've been unable to make it happen.
>
> Can anyone shed some light? Preferably in a short, generic example.

Here is a slight modification of the second example
in help('wireframe'):

   wireframe(z ~ x * y, data = g, groups = gr,
       scales = list(arrows = FALSE,
           x = list(at = c(2, 5, 10)),
           y = list(at = c(6, 10, 14),
                    lab = c('A', 'BBB', 'CCCCC'))
       ))

Peter Ehlers

>
> Thanks in advance,
> Thor
>   		 	   		
> 	[[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.



More information about the R-help mailing list