• 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 Make Grouped Barplots with Same Bar Width

datavizpyr · April 29, 2021 ·

Grouped barplot with same bar widths

Grouped barplot allows to show third categorical variable in the barplot. Sometimes, when we make grouped barplot using ggplot2, some of the bars would have much broader width sizes. We typically get bars with uneven widths in a grouped barplot when some of the groups don't have … [Read more...] about How to Make Grouped Barplots with Same Bar Width

Filed Under: ggplot2, R Tagged With: ggplot2 grouped barplot, ggplot2 position_dodge2

How To Fold Legend into Multiple Rows/Columns in ggplot2

datavizpyr · April 23, 2021 ·

ggplot2 legend in two rows

When plotting with ggplot2 in R, long legends can sometimes overflow, look cluttered, or even get cut off when placed at the top or bottom of a chart. This is especially common when you have many categories (e.g., years or groups) and want the legend to be clearly readable. … [Read more...] about How To Fold Legend into Multiple Rows/Columns in ggplot2

Filed Under: ggplot2, R Tagged With: ggplot2 legend two rows

How to Add Labels Directly in ggplot2. Hint: Use Secondary Axis Trick

datavizpyr · April 17, 2021 ·

Direct Labelling with Secondary Axis Trick

Legends can be of great help to understand a plot. Typically, ggplot2 adds legend by default on right side of the plot based on the variable that we used to color or fill. However, as Cluas Wilke says in his fantastic book on Data Visualization, legends can make the plot … [Read more...] about How to Add Labels Directly in ggplot2. Hint: Use Secondary Axis Trick

Filed Under: Direct labeling ggplot2, ggplot2, R Tagged With: ggplot2, R

How To Customize Border in facet in ggplot2

datavizpyr · April 15, 2021 ·

Remove Space Between Panels in Facet

Faceting in ggplot2 is one of the most powerful ways to create small multiples—a series of plots split by a grouping variable. With facet_wrap() and facet_grid(), you can easily compare distributions, trends, or relationships across categories. New to facets? Start here: How … [Read more...] about How To Customize Border in facet in ggplot2

Filed Under: ggplot2, R, remove facet border Tagged With: ggplot2, R

How To Make PCA Plot with R

datavizpyr · April 6, 2021 ·

PCA plot: PC1 vs PC2

Principal Component Analysis (PCA) is one of the commonly used methods used for unsupervised learning. Making plots using the results from PCA is one of the best ways understand the PCA results. Earlier, we saw how to make Scree plot that shows the percent of variation explained … [Read more...] about How To Make PCA Plot with R

Filed Under: ggplot2, PCA plot, R Tagged With: ggplot2, R

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • Page 25
  • 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