I'm new to R and having some teething issues...
For some reason, and I'm assuming its my data, I can't get it to plot in a line graph using the default plot()
.
This is a teeny tiny sample of my 24 hour data:
t,x,y,z
11:04:02:500,-0.4452,-0.5943,-0.7318
11:04:02:600,-0.4452,-0.5384,-0.7836
11:04:02:700,-0.4691,-0.5304,-0.7158
11:04:02:800,-0.4771,-0.5384,-0.7358
11:04:02:900,-0.4651,-0.6103,-0.7557
11:04:03:000,-0.5091,-0.5544,-0.7079
11:04:03:100,-0.4891,-0.6103,-0.7358
After watching some tutorials I installed ggplot 2
and when I try and use it I get this problem.
> library(ggplot2)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘Rcpp’
Error: package or namespace load failed for ‘ggplot2’
What I have tried
- I have also installed several other packages and they all say the same thing.
- I have checked the security settings and I have full control,
- I also updated my version of R,
- I deleted and re-installed the packages
I'm sorry if this has been asked but I did check on here and YouTube and couldn't find anything.
Any help with this so that I can plot this dataframe as a line graph would be greatly appreciated.
sessionInfo() R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 10586)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.2.3 gtable_0.1.2 grid_3.2.3'
Re-install Rccp
and attempt with library(ggplot2)
> utils:::menuInstallPkgs()tryingURL
'https://www.stats.bris.ac.uk/R/bin/windows/contrib/3.2/Rcpp_0.12.3.zip'
Content type 'application/zip' length 3197565 bytes (3.0 MB) downloaded 3.0 MB
package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning: unable to move temporary installation
‘C:\Users\Destiny\Documents\R\win-library\3.2\file1a7447d175ee\Rcpp’ to
‘C:\Users\Destiny\Documents\R\win-library\3.2\Rcpp’
The downloaded binary packages are in
C:\Users\Destiny\AppData\Local\Temp\RtmpimZVXP\downloaded_packages
> library(ggplot2)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘Rcpp’
Error: package or namespace load failed for ‘ggplot2’
Quick basic Python graph Example quick little example graph using python
Many thanks for your time