i

R Programming Complete Tutorial

R Strip Charts

Strip Chart produces one dimensional scatter plots of the given data. This plot is an excellent alternative to the box plot when sample sizes are small. It can be created using the stripchart ().

Example of strip chart () Function:

The first argument is the data vector; in this example, we are taking the mpg data of mtcars() dataset. Some of the frequently used arguments are to give the title, xlab, and ylab to provide labels for the axes method to specify the way coincident points are plotted like stacked or jitter, col to define the color and pch to use a specific type of points.

From the output, it is clearly visible that most of the data is in the range 13 to 25. Only a few are outside the range.

Graph output: