Create Dot Charts in R Programming - dotchart () Function Last Updated : 11 Apr, 2023 Comments Improve Suggest changes Like Article Like Report dotchart() function in R Language is used to create a dot chart of the specified data. A dot chart is defined as a plot which is used to draw a Cleveland dot plot. Syntax: dotchart(x, labels = NULL, groups = NULL, gcolor = par("fg"), color = par("fg")) Parameters: x: it is defined as numeric vector or matrix labels: a vector of labels for each point. groups: a grouping variable indicating how the elements of x are grouped. gcolor: color to be used for group labels and values. color: the color(s) to be used for points and labels. Example 1: r # Dot chart of a single numeric vector dotchart(mtcars$mpg, labels = row.names(mtcars), cex = 0.9, xlab = "mpg") Output: Example 2: r # Plot and color by groups cyl grps <- as.factor(mtcars$cyl) my_cols <- c("blue", "darkgreen", "orange") dotchart(mtcars$mpg, labels = row.names(mtcars), groups = grps, gcolor = my_cols, color = my_cols[grps], cex = 0.9, pch = 22, xlab = "mpg") Output: Example : R # Create a vector of data data <- c(3, 8, 12, 15, 19, 22, 24, 27, 30) # Create a vector of labels for the data points labels <- c("A", "B", "C", "D", "E", "F", "G", "H", "I") # Create a dot chart dotchart(data, labels = labels, main = "Dot Chart Example", xlab = "Value", ylab = "Label") output : Comment More infoAdvertise with us Next Article Create Dot Charts in R Programming - dotchart () Function K kaurbal1698 Follow Improve Article Tags : R Language R Plot-Function Similar Reads Adding axis to a Plot in R programming - axis () Function axis() function in R Language is to add axis to a plot. It takes side of the plot where axis is to be drawn as argument. Syntax: axis(side, at=NULL, labels=TRUE) Parameters: side: It defines the side of the plot the axis is to be drawn on possible values such as below, left, above, and right. at: Po 2 min read Adding Colors to Charts in R Programming R Programming language is mostly used for statistics and data analytics purposes to represent the data graphically in the software. To represent those data graphically, charts and graphs are used in R. Adding Colors to Charts in R Programming There are hundreds of charts and graphs present in R. Fo 4 min read How to Create Radar Charts in R? In this article, we are going to see how to create Radar Charts in R Programming Language. Radar charts are also known as Spider or Web or Polar charts. It is a graphical graph to display multivariate data in form of 2D charts of three or more quantitative variables which are represented on axes sta 4 min read Create One Dimensional Scatterplots in R Programming - stripchart() Function Strip Chart is defined as one dimensional scatter plots or dot plots which is used as an alternative to box plot when sample sizes are small. It is created using the stripchart() function in R Language. R - stripchart Function Syntax: stripchart(x, data = NULL method, jitter ) Parameters: x : value 3 min read Create a Plot Matrix of Scatterplots in R Programming - pairs() Function pairs() function in R language is used to return a plot matrix, consisting of scatter plots corresponding to each data frame. R - Create Plot Matrix of Scatterplots Syntax: pairs(data) Parameters: data: It is defined as  value of pairs Plot. Returns: Color, Labels, Panels, and by Group in pairs plo 2 min read Like