• 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

ggplot2

How to make Donut plot with ggplot2

datavizpyr · September 28, 2024 ·

How to make a Donut plot

In this tutorial, we will learn how to make a donut plot in R using ggplot2. Donut plot is nothing but a bar plot, reshaped into pie-chart, and then adding a hole at the center to make it look like a donut. We will learn these in step by step manner to understand making Donut … [Read more...] about How to make Donut plot with ggplot2

Filed Under: ggplot2, ggplot2 coord_polar(), R Tagged With: Donut plot with ggplot2

How to change axis tick label size in ggplot2

datavizpyr · September 21, 2024 ·

Changing axis tick label size (both x & y) in ggplot2 with theme() and element_text()

Are your ggplot2 axis tick labels too small to read in presentations, reports, or publications? Don’t worry—you’re not alone. In this step-by-step tutorial, you’ll learn how to change axis tick label size in ggplot2 using theme(), element_text(), and other customization options. … [Read more...] about How to change axis tick label size in ggplot2

Filed Under: ggplot2, ggplot2 element_text(), R Tagged With: change axis tick label size ggplot2

How to make rolling mean line plot of stock data

datavizpyr · September 16, 2024 ·

Time Series Line Plot with Stock Data

Want to smooth out erratic stock price fluctuations and spot the underlying trend? In this tutorial, you’ll learn how to compute and visualize a rolling mean (moving average) of stock prices in R using tidyquant, zoo package's rollmean(), and ggplot2. We’ll fetch Nvidia (NVDA) … [Read more...] about How to make rolling mean line plot of stock data

Filed Under: ggplot2, R Tagged With: moving average time series plot

How to add P-value to each facet in ggplot2

datavizpyr · September 14, 2024 ·

How to Annotate multiple plots in facet_wrap() with p-value : example 2

This tutorial shows you how to add p-value to each facet in ggplot2 when creating multi-panel plots in R. Using a scatter plot example, we’ll perform linear regression analysis for each facet to determine statistical significance. And then we will display the corresponding … [Read more...] about How to add P-value to each facet in ggplot2

Filed Under: facet_wrap ggplot2, ggplot2, R Tagged With: add p-values to each facet

How to Annotate Positive and Negative Values in a barplot

datavizpyr · September 10, 2024 ·

Correctly align annotation on a horizontal barplot with both negative and positive values

In this post, we will learn how to properly annotate a bars barplot, where there are both positive and negative values/bars in ggplot2. In ggplot2, we can use gem_text() with label option to annotate text or bar heights on a barplot easily. However, when we have a barplot that … [Read more...] about How to Annotate Positive and Negative Values in a barplot

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

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