[R] Ternaryplot function
Rolf Turner
r.turner at auckland.ac.nz
Fri Jul 4 02:56:56 CEST 2008
On 4/07/2008, at 10:49 AM, theBenjamin wrote:
>
> I am new to R, so this is most likely a dumb question. I just
> installed the
> vcb package, but when I try to use a function from it (ternaryplot)
> I get an
> error message saying 'could not find function: ternaryplot'. I'm
> pretty
> confident that my script is correct, so I'm assuming that I did not
> properly
> install the package. Is there another step past downloading, and
> selecting
> 'install packages from zip file' in the gui app? In case my code
> is the
> problem, here it is.
>
> X <- as.matrix(AllData)
>
> ternaryplot (
> X[,2:4],
> id = X[,1],
> id_color = "black",
> main = "Solvents"
> )
You need to ***load*** the package before trying to use it.
I.e. execute
> library(vcb)
before calling ternaryplot.
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
More information about the R-help
mailing list