Skip to content
Prev 277261 / 398506 Next

Confused with an error message related to "plotrix" library in the newer versions of R.

Hi Jim,

It's working perfectly fine with the "rxcol" parameter. I am just
wondering how could I miss that..!!!
By the way, many thanks for pointing it out... Otherwise, I would have
been using the old version of R for just getting the required plot.

Much Appreciated,
Prasanth.

-----Original Message-----
From: Jim Lemon [mailto:jim at bitwrit.com.au]
Sent: 14 November 2011 13:39
To: Prasanth V P
Cc: r-help at r-project.org
Subject: Re: [R] Confused with an error message related to "plotrix"
library in the newer versions of R.
On 11/14/2011 05:59 PM, Prasanth V P wrote:
xycol<-color.gradient(c(0,0,0.5,0.15),c(0.25,0.5,0.5,1.75),c(0.5,1.5,1,0),
18)
xxcol<-color.gradient(c(0,1,0.5,1),c(0.25,0.5,0.5,1.25),c(0.5,0.25,0.5,1.5
),18)
Hi Prasanth V P,
Just a typo. Try this:

par(mar=pyramid.plot(xy.pop,xx.pop,labels=agelabels,labelcex=1.125,
  main="Population Pyramid -- Malawi", lxcol=xycol,rxcol=xxcol))

Nice plot.

Jim