• 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

ggplot2

Visualizing Missing Data with Barplot in R

datavizpyr · May 7, 2021 ·

Visualizing Missing Data with Barplot in R ggplot2

One of the common data exploring activities is to quickly have an understanding of the exten of missing data in a data set. There are a few quick ways to make a visualization of missing data. In this tutorial we will learn how to make stacked barplot with counts and proportion of … [Read more...] about Visualizing Missing Data with Barplot in R

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

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 in ggplot2

datavizpyr · April 23, 2021 ·

ggplot2 legend in two rows

Sometimes when we make a plot with a legend either on top or bottom, it may be too long. In this post, we will learn to fold the long legend into two or more rows (or columns) with ggplot2 in R. Example plot with long legend that needs to be wrapped into two rows We … [Read more...] about How To Fold Legend into Multiple Rows 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

ggplot2's facet options are a great way make small multiples, i.e. multiple plots of the same type in a panel or grid. In this post, we will learn how to control the border line in a plot made with facet_wrap() function in ggplot2. First we will see how to remove the border … [Read more...] about How To Customize Border in facet in ggplot2

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

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 15
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Interim pages omitted …
  • Page 27
  • 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