Lattice Bar chart in R

The lattice package in R Programming provides barchart to plot Bar Chart. In real-time, the Lattice Bar chart in R is very useful to compare the data visually. For instance, If we want to compare the sales against region, categories, or product color, use this bar chart. Let me show you to Create a Lattice bar Chart, … Read more

Lattice Scatter Plot in R

The lattice package in R Programming provides xyplot to draw Scatter Plot. This lattice scatters plot in R is very useful to visualize the relationship between two sets of data. You can call this R Scatter Plot as a scatter chart, scatter graph, scattergram, or scatter diagram. For example, to visualize the Salary against Experience, use this … Read more

Lattice Histogram in R

The Lattice Histogram in R is useful to visualize the statistical information. Though it looks like Barplot, Histograms display data in equal intervals. Let us see how to Create a Lattice Histogram using the lattice library, Format its color, adding labels, and drawing multiple Histograms. Lattice Histogram in R syntax The basic syntax to draw … Read more

Functions in R Programming

Functions in R Programming is a block of code or some logic wrapped inside the curly braces { }, which perform a specific operation. We have already seen some R functions in this tutorial journey, and you may not notice them. For instance, print, abs, sqrt, etc., are some of the built-in functions in the … Read more

R ggplot2 Line Plot

The R ggplot2 line Plot or chart connects the dots in order of the variable present on the x-axis. Let us see how to Create a ggplot2 ggplot line plot in R, Format its colors, and add points to it with an example. For this line chart, we use the economics data set provided by RStudio. R … Read more

R ggplot2 Jitter

The R ggplot2 Jitter is very useful to handle the overplotting caused by the smaller datasets discreteness. Let us see how to plot a ggplot jitter, Format its color, change the labels, adding boxplot, violin plot, and alter the legend position using R ggplot2 with example. The syntax to draw a ggplot jitter in R … Read more

Save R ggplot using ggsave

The R ggplot2 package is useful to plot different types of charts and graphs, but it is also essential to save those charts. To save the graphs, we can use the traditional approach (using the export option) or the ggsave function provided by the ggplot2 package. Let us see how to Save the plots drawn … Read more

R ggplot2 Density Plot

The R ggplot2 Density Plot is useful to visualize the distribution of variables with an underlying smoothness. Let us see how to Create a ggplot density plot, Format its colour, alter the axis, change its labels, adding the histogram, and draw multiple density plots using R ggplot2 with an example. R ggplot Density Plot syntax … Read more

R ggplot2 Dot Plot

The R ggplot2 dot Plot or dot chart consists of a data point drawn on a specified scale. Let me show how to Create an R ggplot dotplot, Format its colors, and plot horizontal dot plots with an example. For this R ggplot2 Dot Plot demonstration, we use the airquality data set provided by the studio. Syntax … Read more

R ggplot2 Violin Plot

The R ggplot2 Violin Plot is useful for graphically visualizing the numeric data group by specific data. Let us see how to Create an R ggplot2 violin plot, Format its colors. And drawing horizontal, draw multiple violin plots using ggplot2 with example. For this R ggplot Violin Plot demo, we use the diamonds data set provided by … Read more