Yongjie ZHANG
2013-Jan-25 13:55 UTC
[R] could not find function "qplot" after install.packages("ggplot2")
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 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/colorspace_1.2-0.tgz'Content type 'application/x-gzip' length 404742 bytes (395 Kb)opened URL==================================================downloaded 395 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/stringr_0.6.2.tgz'Content type 'application/x-gzip' length 70411 bytes (68 Kb)opened URL==================================================downloaded 68 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/RColorBrewer_1.0-5.tgz'Content type 'application/x-gzip' length 22390 bytes (21 Kb)opened URL==================================================downloaded 21 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/dichromat_2.0-0.tgz'Content type 'application/x-gzip' length 144378 bytes (140 Kb)opened URL==================================================downloaded 140 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/munsell_0.4.tgz'Content type 'application/x-gzip' length 125546 bytes (122 Kb)opened URL==================================================downloaded 122 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/labeling_0.1.tgz'Content type 'application/x-gzip' length 35236 bytes (34 Kb)opened URL==================================================downloaded 34 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/plyr_1.8.tgz'Content type 'application/x-gzip' length 726655 bytes (709 Kb)opened URL==================================================downloaded 709 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/gtable_0.1.2.tgz'Content type 'application/x-gzip' length 60865 bytes (59 Kb)opened URL==================================================downloaded 59 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/reshape2_1.2.2.tgz'Content type 'application/x-gzip' length 56717 bytes (55 Kb)opened URL==================================================downloaded 55 Kb trying URL 'http://cran.stat.nus.edu.sg/bin/macosx/leopard/contrib/2.15/scales_0.2.3.tgz'Content type 'application/x-gzip' length 169299 bytes (165 Kb)opened URL==================================================downloaded 165 Kb 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"> [[alternative HTML version deleted]]
David Winsemius
2013-Jan-26 02:16 UTC
[R] could not find function "qplot" after install.packages("ggplot2")
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 URLsnipped> 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