[R] wireframe color

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Aug 3 20:16:01 CEST 2009


On Mon, Aug 3, 2009 at 9:36 AM, Marlin Keith Cox<marlinkcox at gmail.com> wrote:
> Hello, hopefully simple question, but I cannot find the answer.  I need to
> change the color from the standard default.  Still want the scaled colors,
> but need different colors for different graphs.
>
> Code is:
>
> wireframe(z ~ y*x, mat.df,
>          drape = TRUE,
>          zlab = list("Water mass error (%)",rot=92), zlim=c(-50,180),
>          xlab = list("Resistance error (%)",rot=16),
>          ylab = list("Length error (%)",rot=118),
>          scales = list(arrows = FALSE),
>     screen = list(z = 20, x = -57, y = 5))

Different color schemes are as simple as

wireframe(volcano, drape = TRUE, col.regions = terrain.colors(100))

-Deepayan




More information about the R-help mailing list