[R] could not find function "qplot" after install.packages("ggplot2")

David Winsemius dwinsemius at comcast.net
Sat Jan 26 03:16:49 CET 2013

On Jan 25, 2013, at 5:55 AM, Yongjie ZHANG wrote:

> On OS X 10.8.2, after I installed ggplot2, and picked mirror of Singapore. it could not find qplot function.
> Could anyone pls help me ? Thank you.
> Pls see:
>> install.packages("ggplot2")--- Please select a CRAN mirror for use in this session ---also installing the dependencies ¡®colorspace¡¯, ¡®stringr¡¯, ¡®RColorBrewer¡¯, ¡®dichromat¡¯, ¡®munsell¡¯, ¡®labeling¡¯, ¡®plyr¡¯, ¡®gtable¡¯, ¡®reshape2¡¯, ¡®scales¡¯, ¡®proto¡¯
> trying URL

> trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/proto_0.3-10.tgz'Content type 'application/x-gzip' length 454829 bytes (444 Kb)opened URL==================================================downloaded 444 Kb
> trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/ggplot2_0.9.3.tgz'Content type 'application/x-gzip' length 2659255 bytes (2.5 Mb)opened URL==================================================downloaded 2.5 Mb
> The downloaded binary packages are in	/var/folders/hq/nhxq0n9d22l5xl_dz4z676pw0000gn/T//RtmppjBeA2/downloaded_packages> data(diamonds)Warning message:In data(diamonds) : data set ¡®diamonds¡¯ not found> set.seed(1410)> qplot(carat, price, data = diamonds)Error: could not find function "qplot">

Operator error.

Most likely you have not read FAQ 7.30

While you are at it you should read the other FAQs as well.


David Winsemius
Alameda, CA, USA

More information about the R-help mailing list