• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Data Viz with Python and R

Learn to Make Plots in Python and R

  • Home
  • Python Viz
  • Seaborn
  • Altair
  • R Viz
  • ggplot2
  • About
    • Privacy Policy
  • Show Search
Hide Search

R

Four geoms in ggplot2 to visualize uncertainty

datavizpyr · September 20, 2023 ·

Visualizing uncertainty with geom_pointange()

In this post, we will learn about four geoms in ggplot2 that are useful for revealing uncertainty in numerical variables with multiple categories. The four geoms, geom_errorbar(), geom_linerange(), geom_crossbar(), and geom_pointrange() are useful when we have categeorical x … [Read more...] about Four geoms in ggplot2 to visualize uncertainty

Filed Under: geom_errorbar(), geom_pointrange(), ggplot2, R Tagged With: geoms for visualizing uncertainty

How to make legend order match with plot

datavizpyr · September 15, 2023 ·

Match legend order with plot data order with fct_reorder2

In this post we will learn how to make a line plot such that data on the plot matches with the legend order. We will use forcats package's fct_reorder2() function. Let us load the packages needed. We will use gapminder data set to make a line plot. First let us … [Read more...] about How to make legend order match with plot

Filed Under: ggplot2, R Tagged With: forcats fct_reorder2(), make legend order match plot

How to make boxplots between one categorical variable vs all numerical variables

datavizpyr · September 14, 2023 ·

Multiple boxplots between one categorical variable vs all numerica variable in dataframe

Often one might be interested in quickly visualizing the relationship between one categorical vs all numerical variables in a dataframe. We can make multiple boxplots between one categorical variable against all the numerical variables on the dataframe at the same time. In … [Read more...] about How to make boxplots between one categorical variable vs all numerical variables

Filed Under: ggplot2, R Tagged With: facet_wrap() multiples

How to Change ggplot theme with ggthemes

datavizpyr · September 12, 2023 ·

ggthemes' WSJ theme

In this post, we will learn how to make beautiful plots with ggplot2 using themes from ggthemes R package. By default ggplot2 makes plots with grey background, using theme_grey(). ggplot2 comes with about 8 complete themes that help us change the look of a given plot. If you … [Read more...] about How to Change ggplot theme with ggthemes

Filed Under: ggplot2 Tagged With: change themes with ggthemes

How to make a plot with column name in a variable

datavizpyr · August 10, 2023 ·

Add color to ggplot using column name stored in a variable

In this tutorial, we will learn how to make a plot using ggplot2 such that the column name of interest in a plot is saved as a variable. And we are interested in using the variable name to make a boxplot. The ability to use a column name as a variable help us make more … [Read more...] about How to make a plot with column name in a variable

Filed Under: ggplot2 Tagged With: ggplot with column name as variable

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Interim pages omitted …
  • Page 36
  • Go to Next Page »

Primary Sidebar

Tags

Altair barplot Boxplot boxplot python boxplot with jiitered text labels Bubble Plot Color Palette Countplot Density Plot Facet Plot gganimate ggplot2 ggplot2 Boxplot ggplot2 error ggplot boxplot ggridges ggtext element_markdown() Grouped Barplot R heatmap heatmaps Histogram Histograms Horizontal boxplot Python lollipop plot Maps Matplotlib Pandas patchwork pheatmap Pyhon Python R RColorBrewer reorder boxplot ggplot Ridgeline plot Scatter Plot Scatter Plot Altair Seaborn Seaborn Boxplot Stock Price Over Time Stripplot UpSetR Violinplot Violin Plot World Map ggplot2

Buy Me a Coffee

Copyright © 2025 · Daily Dish Pro on Genesis Framework · WordPress · Log in

Go to mobile version