Hello everyone

I tried to install ggplots packages of R in Ubuntu server, but there were some errors which displayed as follows:

    Warning messages:
    1:In install.packages("ggplot2"):
    Installation of package 'plyr' had non-zero exit status
    
    2: In install.packages("ggplot2"):
    Installation of package 'reshape2' had non-zero exit status
    
    3: In install.packages("ggplot2"):
    Installation of package 'scales' had non-zero exit status
    
    4: In install.packages("ggplot2"):
    Installation of package 'ggplot2' had non-zero exit status

Then I tried to use ggplot2 through command:

    library('ggplot2')

But terminal told me that 

    Error in library (ggplot2): there is no package called 'ggplot2'

I have found many information about this problem on internet, but no available ways find and error was error.

If you have some suggestion, please tell me.

Thanks for your help.

<p>You need to install <a href="http://cran.r-project.org/web/packages/Rcpp/index.html">Rcpp</a> first. I&#39;m a bit surprised this wasn&#39;t done automagically.</p>
