R qplot from ggplot2 and binwidth=10 lscalls

commandline session

> lscalls
 [1]   2 707  16  11  25  26  24  38   4   5   2   1   2   9   1   1   2   1   1
[20]   1   1
> qplot(lscalls)
Error: could not find function "qplot"
> library(ggplot)
Error in library(ggplot) : there is no package called ‘ggplot’
> library(ggplot2)
Loading required package: reshape
Loading required package: plyr

Attaching package: ‘reshape’

The following object(s) are masked from ‘package:plyr’:

    rename, round_any

Loading required package: grid
Loading required package: proto
> qplot(lscalls)
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
> qplot(lscalls.binwidth=4)
Error: attempt to apply non-function
> qplot(lscalls,binwidth=4)
> qplot(lscalls,binwidth=10)
> qplot(lscalls,binwidth=60)
> qplot(lscalls,binwidth=10)
> png(file="Rqplotbinwidth-lscalls.png")
> qplot(lscalls,binwidth=10)
> dev.off()
null device
          1
>

Rqplotbinwidth-lscalls

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s