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 – bar charts in R

Different forms of bar charts will be displayed with datasets. The type of bar chart also depends on the problem (and data) on hand.

  1. Enter example(barplot) in the console and hit the Return key.
  2. A new window pops up with the heading Click or hit Enter for next page. Click (and pause between the clicks) your way until it stops changing.
  3. Load the lattice package with library(lattice).
  4. Try example(barchart) in the console. The sixth plot is an example of the bar chart.
  5. Load the dataset on severity counts for the JDT software from the RSADBE package with data(Severity_Counts). Also, check for this data.

    A view of this object is given in the screenshot in step 7. We have five severities of bugs: general bugs (Bugs), non-trivial ...

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