• 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
  • Seaborn
  • Matplotlib
  • ggplot2
  • Altair
  • About
    • Privacy Policy
  • Visualizing Activation Functions in Neural Networks
  • Confusion Matrix Calculator
  • Visualizing Dropout Rate in Neural Network
  • Visualizing Loss Functions in Neural Networks
  • Show Search
Hide Search

How to duplicate y-axis in ggplot2

datavizpyr · October 20, 2023 ·

Duplicate y-axis in ggplot2 with sec.axis()

In this tutorial, we will learn how to duplicate the primary axis in a plot made with ggplot2. We can duplicate either y-axis or x-axis using ggplot2's sec.axis() function. Here we will first see an example of duplication y axis and then an example duplicating x-axis using … [Read more...] about How to duplicate y-axis in ggplot2

Filed Under: ggplot2, R Tagged With: duplicate y-axis in ggplot2

How to increase the gap between boxes in a grouped boxplot with Seaborn

datavizpyr · September 30, 2023 ·

Increase gap between boxes in a nested boxplot with Seaborn

In this post we will learn how to increase the gap between boxes in a nested or grouped boxplot made with Seaborn in Python. We will use Seaborn v0.13.0 that came out in September 2023's feature to increase the gap size. Let us first load the modules/packages needed to make … [Read more...] about How to increase the gap between boxes in a grouped boxplot with Seaborn

Filed Under: Python, Seaborn Tagged With: Increase gap in boxplot Seaborn, Seaborn Boxplot

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

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Interim pages omitted …
  • Page 55
  • Go to Next Page »

Primary Sidebar

Python & R Viz Hubs

  • Seaborn Guide & Cookbook
  • ggplot2 Guide & Cookbook
  • Matplotlib Guide & Cookbook
  • Confusion Matrix Calculator
  • Visualizing Activation Functions
  • Visualizing Dropout
  • Visualizing Loss Functions

Buy Me a Coffee

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

Go to mobile version