This is a documentation on creating a dotplot using the ‘stripchart()’ function:
We create or import our data into RStudio.
For this example, we create the data manually.
x <- c(1, 5, 7, 3, 3, 5, 8, 15, 10, 10, 15, 5, 5, 12, 15, 10, 15, 3, 3, 3, 5, 15)
We now create the dotplot
stripchart(x, method = "stack",
at = c(0.05),
pch = 20, cex = 2.5,
las = 1,
frame.plot = F,
xlim = c(0,20),
main = "Sample dotplot")

For our 2nd example, we use the “concert.csv” file.
library(readr)
concert <- read.csv("concert.csv")
We now create the dotplot for the data.
stripchart(concert, method = "stack",
at = c(0.05),
pch = 20, cex = 1.8,
las = 1,
frame.plot = F,
xlim = c(0,5),
main = "Number of Concert Goers")

For the arguments inside the function:
x: the data from which the plots are to be produced.
method: the method to be used to separate coincident points. The value of this argument was set to “stack” in order to have coincident points stacked.
at: a numeric vector giving the locations where the charts should be drawn.
pch: either an integer specifying a symbol or a single character to be used in plotting points. (20 is for a dot).
cex: a numeric value that determines the amount by which plotting text and symbols should be magnified.
las:a numeric value that determines the style of axis labels. (0 - always parallel to the axis (default); 1 - always horizontal; 2 - always perpendicular to the axis; 3 - always vertical).
frame.plot: a logical argument indicating whether a box should be drawn around the plot.
xlim: the x limits of the plot.
main: a main title for the plot.