• 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

R

How to Annotate a plot with P-value in ggplot2

datavizpyr · August 30, 2024 ·

Annotate a plot with p-value from linear regression model in ggplot2: Example 2

Adding statistical significance indicators to your data visualizations is crucial for communicating research findings effectively. When working with ggplot2 in R, displaying p-values directly on scatter plots helps viewers immediately understand the statistical relationship … [Read more...] about How to Annotate a plot with P-value in ggplot2

Filed Under: ggplot2, ggtext, R Tagged With: add annotation with ggtext, add p-value to plot in R

How to order facet variable in grouped boxplot by mean difference between groups in ggplot2

datavizpyr · August 26, 2024 ·

How to order facet_variable in a grouped boxplot by mean difference between groups

In this tutorial, we’ll dive into grouped boxplots using ggplot2 in R and demonstrate how to reorder facet variables based on the mean difference between groups. Imagine comparing sales performance across multiple regions or test scores across different schools—by reordering … [Read more...] about How to order facet variable in grouped boxplot by mean difference between groups in ggplot2

Filed Under: Boxplot ggplot2, ggplot2 Tagged With: Order grouped boxplot

How to Deal with Outliers in boxplot with ggplot2

datavizpyr · August 25, 2024 ·

outlier.shape=NA: do not show outlier data in the boxplot with ggplot2

In this post, we will learn of two ways to deal with outlier data points while making a boxplot. By default, ggplot2 boxplot() identifies the outliers and disply them as black dots at the boxplot extremes. One of the options to deal with outlier is to ignore them. With ggplot2, … [Read more...] about How to Deal with Outliers in boxplot with ggplot2

Filed Under: ggplot2, R Tagged With: boxplot outliers

How to Move Facet strip label to the bottom

datavizpyr · August 21, 2024 ·

How to move the facet strip label to the bottom in ggplot2

In this tutorial, we will learn how to move the strip label title text in ggplot2's facet* functions to the bottom. By default, facet_wrap() creates a box for each strip with a label at the top of the small multiple plot. In this post, we will show how to move the strip label to … [Read more...] about How to Move Facet strip label to the bottom

Filed Under: facet_wrap ggplot2, facet_wrap remove box, ggplot2, R Tagged With: move facet strip label

4 Ways to have Plots Side by side in ggplot2

datavizpyr · August 19, 2024 ·

Side by side plots in ggplot2 with gridExtra

In this post, we will learn how to combine two plots side-by-side using four different approaches. First, we will show how we can use facet_wrap() function in ggplot2, if we are interested in similar plots (small multiples) side by side. Next three approaches are more general, … [Read more...] about 4 Ways to have Plots Side by side in ggplot2

Filed Under: ggplot2, R Tagged With: side by side plots

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Interim pages omitted …
  • Page 37
  • 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