Monday, August 17, 2020

stripchart (dot plot)

Also known as strip chart and strip plot. Call this function in the form:

stripchart(quantity ~ category, method = "stack", data = "data.frame")

stripchart produces a one-dimensional scatter plot on discrete, continuous, and univariate data. Data points are plotted above a single numeric scale. You can create dot plots by hand. Use them when the data set is small, and you want to identify outliers and clusters of values.

While the only required parameter for stripchart is the data frame, optional parameters let you set horizonal or vertical orientation, group data in categories, and add "jitter", to help keep values from superimposing.

R Example

This example plots the values from the standand rivers dataset, the lengths of 141 major rivers in North America.

stripchart(rivers, method = "jitter", xlab = "length")
dot plot of rivers dataset

No comments:

Post a Comment

Please help to combat malicious use of the Internet.