Error Could Not Find Function Qplot
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of error in library( ggplot2 ) there is no package called ‘ggplot2’ this site About Us Learn more about Stack Overflow the company Business Learn ggplot2 not loading more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question ggplot2 not working x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ggplot2 dependencies R ggplot2 functions do not work [duplicate] up vote -3 down vote favorite Possible Duplicate: Error: could not find function … in R Question: why do my ggplot2 functions not work? Background: Ubuntu 12.04, Gnome Desktop, R 2.15.1, Mirror: http://cran.stat.ucla.edu/ First of all, it says downloaded source packages are in '/tmp/Rtmp2GMNV8/downloaded_packages.' THERE IS NO '/tmp/Rtmp2GMNV8/downloaded_packages.' Second, ggplot2 is installed. Why then "could not
Could Not Find Function Ggplot
find function "qplot""??? I've looked for hours and cannot find any answers online. Does anybody know what is going on? The readout: emilio@dog:~/R$ sudo R R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" # I've taken the liberty of omitting a few lines > install.packages("ggplot2", dependencies=TRUE) Installing package(s) into ‘/usr/local/lib/R/site-library’ [...] * DONE (SparseM) * DONE (sp) * DONE (mvtnorm) * DONE (evaluate) * DONE (Hmisc) * DONE (maps) * DONE (hexbin) * DONE (gpclib) * installing *source* package ‘ggplot2’ ... ** package ‘ggplot2’ successfully unpacked and MD5 sums checked ** R ** data ** moving datasets to lazyload DB ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded * DONE (ggplot2) * DONE (quantreg) * DONE (mapproj) * DONE (maptools) * DONE (multcomp) * DONE (testthat) The downloaded source packages are in ‘/tmp/Rtmp2GMNV8/downloaded_packages’ > help(qplot) No documentation for ‘qplot’ in specified packages and libraries: you could try ‘??qplot’ > help(ggplot) No documentation for ‘ggplot’ in specified packages and libraries: you could try ‘??ggplot’ > data(diamonds, package="ggplot2") > head(diamonds) carat cut
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies
Ggplot2 Could Not Find Function Unit
of this site About Us Learn more about Stack Overflow the company how to install ggplot in r studio Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users could not find function r Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/11336169/r-ggplot2-functions-do-not-work minute: Sign up Error: could not find function … in R up vote 96 down vote favorite 24 I am using R and tried some.function but I got this error message : Error: could not find function `some.function` This question comes up very regularly. When you get the error: could not find function in R, how can you solve it? Thank you http://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r in advance for your help. This is meant to be a FAQ question, so please be as complete as possible. The answer is a community answer, so feel free to edit if you think something is missing. This question is approved on meta: http://meta.stackexchange.com/questions/101892/community-wiki-with-common-error-messages-allowed r function error-handling r-faq share|improve this question edited Apr 25 '14 at 9:44 community wiki 11 revs, 6 users 54%Joris Meys 3 Before you vote to close this question, first read this disussion on meta: meta.stackexchange.com/questions/101892/… –Andrie Aug 11 '11 at 14:14 2 If all else fails, try grepping the source code for base R and your installed packages –nullglob Aug 11 '11 at 14:46 3 @nullglob That seems somewhat extreme :-) –Gavin Simpson Aug 11 '11 at 14:51 um, what is wrong . . . –mdsumner Aug 11 '11 at 15:21 I have a relevant question: stackoverflow.com/questions/23357551/…. In this case, ANY R command fails, but q()! Advice will be greatly appreciated! –Aleksandr Blekh Apr 30 '14 at 9:29 add a comment| 8 Answers 8 active oldest votes up vote 63 dow
have installed all the packages. I think it is not in the default location. How do I idnetify whrere it is and how https://support.rstudio.com/hc/en-us/community/posts/200664097-unabel-to-locate-ggplot2 do I redirect RStudio to look there? Thanks. Chetty library(ggplot2) Error: package 'reshape' required by 'ggplot2' could not be found names(cars) [1] "speed" "dist" mean(cars$speed) [1] 15.4 qplot(speed, dist, data = cars) Error: could not find function "qplot" Ian Pylvainen December 30, 2013 09:02 Share Facebook Twitter LinkedIn Google+ Please sign in to leave a comment. Date Votes 8 comments 0 Hello, Sweave and knitr could not use a separate environment and you'll need to load the library in your script such as library(ggplot2). See the following documentation: http://rstudio.org/docs/authoring/overview You can compile the Sweave document into a PDF using the Compile PDF button on the toolbar. Note that for reproducibility purposes, this compile runs in a separate process and environment (rather than using the current workspace). This is to ensure the could not find script will always produce the same result and not be effected by (or pollute) your regular R environment. Josh Ian Pylvainen December 30, 2013 09:04 0 votes Share Facebook Twitter LinkedIn Google+ Permalink 0 Thanks Josh. Please note that there is a statement library(ggplot2) and the error message came in spite of that. My memory is that when I installed packages I got a warning that the packages cannot be installed in the default location ant they will be installed in some personal library. SO the package "ggplot2" is there but RStudio is not getting it. How to point to that location? Thanks. Chetty Ian Pylvainen December 30, 2013 09:04 0 votes Share Facebook Twitter LinkedIn Google+ Permalink 0 Chetty, Sorry for the confusion and are you saying that when call library(ggplot2) from the console it works fine, but not inside an Rnw document? We're not doing anything special, but perhaps try putting a call to .libPaths() inside your .Rnw document and looking at the output. This will tell you the path that R is looking for packages. See more at: > ?.libPaths Josh Ian Pylvainen December 30, 2013 09:04 0