• 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

3 Different ways to make bar plots with ggplot2

datavizpyr · July 17, 2024 ·

How to make barplot with geom_col()

Creating effective bar plots in ggplot2 requires knowing which function to use for your data structure. This comprehensive guide demonstrates three essential approaches—geom_bar() for raw data, geom_col() for summarized values, and stat_count() for explicit control—with practical … [Read more...] about 3 Different ways to make bar plots with ggplot2

Filed Under: barplot ggplot2, ggplot2, R Tagged With: barplot with geom_bar(), barplot with geom_col(), barplot with stat_count()

How to specify the order of panes in facet_wrap

datavizpyr · July 11, 2024 ·

How to specify order of plots in a plot with facet_wrap()

In this tutorial, we will learn how to change the order of panes in a plot made with facet_wrap() or facet_grid(). We will use forcats package's function fct_relevel() to specify the order we want while plotting. Let us make a scatterplot with facets using … [Read more...] about How to specify the order of panes in facet_wrap

Filed Under: facet_wrap(), ggplot2, R Tagged With: change plot order in facet_wrap()

How to Format Date in title text in ggplot2

datavizpyr · July 10, 2024 ·

How to format date variable in ggplot2 title

In this tutorial, we will learn how to format date variables in the title text of a plot made with ggplot2. Sometimes one might want to write date in the title text. It is better to use the date as variable and format the way want, either full month or short month or full/partial … [Read more...] about How to Format Date in title text in ggplot2

Filed Under: format() function, ggplot2, R Tagged With: format date variable in title

How to Add matching colors to keywords in title text

datavizpyr · July 9, 2024 ·

Add matching colors to keywords in ggplot2 title text with ggtext

This tutorial teaches you how to color words in a ggplot title to match the data in the plot itself. This approach has two main benefits: Improves interpretation: Readers can understand the chart more quickly. Reduces clutter: It can eliminate the need for a … [Read more...] about How to Add matching colors to keywords in title text

Filed Under: ggplot2, ggtext, R Tagged With: add matching color in title

How to selectively add color to title text in ggplot2

datavizpyr · July 8, 2024 ·

Add colors to select words in title text with ggtext

In this tutorial, we will learn how to specify colors to selective words of title text in ggplot2. For example, if we had made a plot with ggplot2 and have title text to describe the plot, we will learn how to color certain words of the title not the whole title text. We will … [Read more...] about How to selectively add color to title text in ggplot2

Filed Under: ggplot2 Tagged With: add color to title text in ggplot2

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