Strip Plots Using Lattice Package in R Last Updated : 28 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report In general, Strip Plots are used to plot univariate data. It's a 2D plot where on X-Axis the response variables are plotted. These are alternatives to the histogram or density plot. It is typically used to plot small data sets so here we will be using the iris dataset to implement it. In, R Programming, the Strip Plots can be implemented using the stripplot() function which is present in the lattice package. Syntax: stripplot(formula,data,jitter,factor,xlab,ylab,main) where, data - data frame that needs to be considered to plot jitter - used to specify whether the values should be jittered or notfactor - used to specify the amount of jitterxlab - used to specify the X-axis labelmain - used to specify the title of the plot Let's see the code for Simple Strip Chart. In this, we will be using the iris dataset and plotting the sepal length using stripplot(). R # Install the required package install.packages("lattice") # Load the installed package library(lattice) # Load the default dataset(iris) into current working environment data(iris) # Plotting the Simple Strip plot using striplot() lattice::stripplot(~Sepal.Length, data=iris, jitter=TRUE, xlab="Sepal Length", main="Simple Strip Plot of iris Dataset") Output: We can also plot the Partitioned Strip Plot for each category. Here we are categorizing according to Species column. The code is given below. R # Install the required package install.packages("lattice") # Load the installed package library(lattice) # Load the default dataset(iris) into current working environment data(iris) # Plotting the Partitioned Strip plot using striplot() lattice::stripplot(~Sepal.Length|Species, data=iris, jitter=TRUE, layout=c(1,3), xlab="Sepal Length") Output: We can also customize the plot using col parameter. We can add different colors to the plot. R # Install the required package install.packages("lattice") # Load the installed package library(lattice) # Load the default dataset(iris) into current working environment data(iris) # Plotting the Customized Strip plot using striplot() lattice::stripplot(~Sepal.Length|Species, data=iris, jitter=TRUE,layout=c(1,3), xlab="Sepal Length", main="Customized Strip Plot of iris Dataset", col=c("red","blue","green")) Output: Comment More infoAdvertise with us Next Article Draw Multiple lattice Plots in One Window in R S sri06harsha Follow Improve Article Tags : Technical Scripter R Language Technical Scripter 2022 Similar Reads Density Plots Using Lattice Package in R The density plots are mainly used to visualize the distribution of continuous numeric variables. The densityplot() uses kernel density probability estimate to calculate the density probability of numeric variables. In R Programming, the density plot can be plotted using the densityplot() function wh 2 min read How to create a scatter plot using lattice package in R? In this article, we will discuss how to create the scatter plots using lattice package in R programming language. In R programming, the Lattice package is a data visualization library that consists of various functions to plot different kinds of plots. Using the lattice library we can able to plot v 2 min read How to create a boxplots using lattice package in R? In this article, we will discuss how to create the boxplots using lattice package in R Programming language. In R programming, Lattice package is a data visualization library and consists of various functions to plot different kind of plots. Using lattice library we can able to plot different plots 2 min read Grid and Lattice Packages in R Programming Every programming language has packages to implement different functions. Many functions are bundled together in a package. To use those functions, installation and loading of these packages are required. In R programming, there are 10, 000 packages in the CRAN repository. Grid and Lattice are some 3 min read Draw Multiple lattice Plots in One Window in R In this article, we will discuss how to draw multiple lattice plots in One window. Module Usedlattice: The lattice package uses grid package to provide better relationships between the data. It is an add-on package for the implementation of Trellis graphics (graphics that shows relationships between 2 min read Axes and Scales in Lattice Plots in R In R Programming Language, lattice graphics are a powerful method for displaying data. They offer a versatile and dependable framework for making many other types of plots, such as scatterplots, bar charts, and more. Understanding how to adjust and modify the axes and scales is a crucial component i 4 min read Like