[R] pie graphs in log scale axis

jwd jwd at surewest.net
Mon Oct 28 23:03:36 CET 2013

On Mon, 28 Oct 2013 13:40:51 +0000
"Ortiz, John" <OrtizJ at si.edu> wrote:

> Dear list users,
> I'm doing a plot integrating Grid output with Base Graphics output
> (gridBase, Murrell 2012).
> My goal is to produce a xy plot where each point is represented by a
> pie.  I could get it using the attach code, but now I want to change
> the X axis to log scale.
> when I introduce the log="x" parameter in the line:
> plot(x, y, xlim=c(0.1, 1.2), log="x", ylim=c(0.1, 1.2), type="n")
> I get this warning!
> vps <- baseViewports()
> Warning message:
> In baseViewports() : viewport scales NOT set to user coordinates
It is not clear what you want.  Why is there an 'x = "log"' term in
plot()?  If you want to plot log(x) try using:

plot(log(x), y, xlim=c(0.1, 1.2), ylim=c(0.1, 1.2), type="n")

That generates an x/y plot with pies at various points.

More information about the R-help mailing list