O'Reilly logo

R Statistical Application Development by Example Beginner's Guide by Prabhanjan Narayanachar Tattar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – dot charts in R

The dotchart function from the graphics package and dotplot from the lattice package will be used to obtain the dot charts.

  1. To view the default examples of dot charts, enter example(dotplot); example(dotchart); in the console and hit the Return key.
  2. To obtain the dot chart of the before and after release bug frequencies, run the following code:
    dotchart(Severity_Counts,col=15:16,lcolor="black",pch=2:3,labels=names(Severity_Counts),main="Dot Plot for the Before and After Release Bug Frequency",cex=1.5)

    Here, the option col=15:16 is used to specify the choice of colors; lcolor is used for the color of the lines on the dot chart which gives a good assessment of the relative positions of frequencies for the human eye. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required