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
>
