
{"id":8220,"date":"2013-02-24T13:44:25","date_gmt":"2013-02-24T13:44:25","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8220"},"modified":"2013-02-24T13:44:25","modified_gmt":"2013-02-24T13:44:25","slug":"r-qplot-from-ggplot2-and-binwidth10-lscalls","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/02\/24\/r-qplot-from-ggplot2-and-binwidth10-lscalls\/","title":{"rendered":"R qplot from ggplot2 and  binwidth=10  lscalls"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n&gt; lscalls\n [1]   2 707  16  11  25  26  24  38   4   5   2   1   2   9   1   1   2   1   1\n[20]   1   1\n&gt; qplot(lscalls)\nError: could not find function \"qplot\"\n&gt; library(ggplot)\nError in library(ggplot) : there is no package called \u2018ggplot\u2019\n&gt; library(ggplot2)\nLoading required package: reshape\nLoading required package: plyr\n\nAttaching package: \u2018reshape\u2019\n\nThe following object(s) are masked from \u2018package:plyr\u2019:\n\n    rename, round_any\n\nLoading required package: grid\nLoading required package: proto\n&gt; qplot(lscalls)\nstat_bin: binwidth defaulted to range\/30. Use 'binwidth = x' to adjust this.\n&gt; qplot(lscalls.binwidth=4)\nError: attempt to apply non-function\n&gt; qplot(lscalls,binwidth=4)\n&gt; qplot(lscalls,binwidth=10)\n&gt; qplot(lscalls,binwidth=60)\n&gt; qplot(lscalls,binwidth=10)\n&gt; png(file=\"Rqplotbinwidth-lscalls.png\")\n&gt; qplot(lscalls,binwidth=10)\n&gt; dev.off()\nnull device\n          1\n&gt;\n\n<\/pre>\n<p><a href=\"http:\/\/www.beautifulwork.org\/wp-content\/uploads\/2013\/02\/Rqplotbinwidth-lscalls.png\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.beautifulwork.org\/wp-content\/uploads\/2013\/02\/Rqplotbinwidth-lscalls-300x300.png\" alt=\"Rqplotbinwidth-lscalls\" width=\"300\" height=\"300\" class=\"alignright size-medium wp-image-8221\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>commandline session &gt; lscalls [1] 2 707 16 11 25 26 24 38 4 5 2 1 2 9 1 1 2 1 1 [20] 1 1 &gt; qplot(lscalls) Error: could not find function &#8220;qplot&#8221; &gt; library(ggplot) Error in library(ggplot) : there is no package called \u2018ggplot\u2019 &gt; library(ggplot2) Loading required package: reshape Loading required &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/02\/24\/r-qplot-from-ggplot2-and-binwidth10-lscalls\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;R qplot from ggplot2 and  binwidth=10  lscalls&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8220"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8220"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8220\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}