gravatar

poorvi_ks

Poorvi

Recently Published

Violin plot
violin plot with ggplot2 to visualize Sepal Length distribution across Iris species.
Correlational matrix
Here's a two-line description for your RPub: --- This R script visualizes the correlation matrix of numeric variables in a dataset using `ggplot2` and `reshape2`. The function creates a heatmap to easily interpret the strength and direction of correlations between variables.
Boxplot of Sepal Length by Species
plot uses ggplot2 to display a boxplot of sepal length across different species in the Iris dataset. The boxplot includes notches to show confidence intervals and highlights outliers in red, providing insights into the distribution and variability of sepal length by species.
Density Plot of Sepal Length by Species
### Density Plot of Sepal Length by Species This visualization uses `ggplot2` to create density plots of sepal length for each species in the Iris dataset, highlighting distribution differences across species.
Histogram
plot uses ggplot2 to display the distribution of miles per gallon (mpg) across different numbers of cylinders in the mtcars dataset. The histogram shows the frequency of mpg values with separate facets for each cylinder category.
Distribution of Diamond Prices with Density Curves by Clarity
visualization uses ggplot2 to display the distribution of diamond prices from the diamonds dataset. The histogram shows the price distribution with overlaid density curves, colored by diamond clarity. The plot uses a bin width of 500 and includes density curves adjusted for clarity.
Plotting Mathematical Curves
function plot_math_curves visualizes mathematical expressions over a specified range with custom line types using ggplot2. The example demonstrates plotting sine and cosine functions over [−2π,2π] with different line styles.
box plot
This R script creates and displays a box plot of highway mileage distribution by the number of cylinders in the `mpg` dataset using ggplot2 with a purple color palette.
bar graph
This R script creates a stacked bar graph using the `diamonds` dataset to show the proportion of diamond colors within each cut category, with a blue color palette applied. The plot is then displayed with minimal theming and labeled axes.
time series plot
This R script defines a function to plot a time series trend of a specified value by group using ggplot2, then uses it to visualize unemployment data over time by year from the `economics` dataset.
scatterplot
This R script creates a scatter plot using ggplot2 to visualize the relationship between horsepower (hp) and miles per gallon (mpg) in the mtcars dataset, with points colored by the number of cylinders (cyl). It demonstrates basic scatter plot creation and customization.
Bar plot
This R script creates a dataset, summarizes it by category, and visualizes the mean and median of a numeric variable for each category using bar plots with ggplot2. It demonstrates data creation, summarization with dplyr, and visualization techniques.
dot plot
This R program defines a function `plot_dot_plots` to create dot plots of specified continuous variables grouped by a categorical variable using `ggplot2` and `reshape2`. It melts the data and plots the variables, with points colored by the grouping variable.