I ran the following code in R according to this page
install.packages("ggtern")
but R says
> install.packages("ggtern")
Installing package into ‘/home/user/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘ggtern’ is not available (for R version 3.0.2)
Now how can I install it?
Just for the sake of completeness:
> install.packages(c("ggplot2", "plyr", "gtable", "scales", "reshape2", "proto", "sp"))
Download
ggtern_1.0.3.2.tar.gz
fromhttp://cran.r-project.org/src/contrib/Archive/ggtern/
and put it onHome
directory or randownload.file("http://cran.r-project.org/src/contrib/Archive/ggtern/ggtern_1.0.3.2.tar.gz", destfile="ggtern_1.0.3.2.tar.gz")
.> install.packages("ggtern_1.0.3.2.tar.gz", repos=NULL)
.Load the package
> library(ggtern)
.Use the package. See Making a ternary plot.
Package
ggtern
was removed from the CRAN repository (Archived on 2015-03-03 as misuse of\donttest
was not corrected).Formerly available versions can be obtained from the archive.
You can install the source package manually in R:
or in a shell: