• 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

Uncategorized

How to reverse legend key order in ggplot2

datavizpyr · January 19, 2023 ·

How to reverse legend key order in ggplot2

Reversing legend order in ggplot2 is essential for creating intuitive data visualizations where the legend arrangement matches your data hierarchy or presentation needs. By default, ggplot2 displays legend keys in alphabetical order, but often you'll want to reverse ggplot2 … [Read more...] about How to reverse legend key order in ggplot2

Filed Under: ggplot2, R, Uncategorized Tagged With: reverse legend key order

How to Increase Legend Key Size in ggplot2

datavizpyr · January 16, 2023 ·

How to Increase Color Legend's Point Size in ggplot2

Learning how to increase legend key size in ggplot2 is essential for creating readable and professional data visualizations. When working with scatter plots containing multiple groups or using transparency (alpha), default legend keys can become too small or difficult to … [Read more...] about How to Increase Legend Key Size in ggplot2

Filed Under: ggplot2, R, Uncategorized Tagged With: ggplot2 guide_legend(), ggplot2 guides(), ggplot2 increase legend point size

Lollipop plot with ggplot extension ggalt

datavizpyr · January 4, 2023 ·

Customizing lollipop. plot with geom_lollipop() in ggalt

Creating a lollipop plot with ggalt is an excellent way to visualize ranked data with minimal ink usage compared to traditional bar charts. The ggalt package extends ggplot2 functionality with geom_lollipop(), making it easy to create elegant stick-and-circle visualizations that … [Read more...] about Lollipop plot with ggplot extension ggalt

Filed Under: ggplot2, R, Uncategorized Tagged With: geom_lollipop() ggalt, lollipop plot in R

How to write a function make histograms with ggplot

datavizpyr · November 25, 2022 ·

Customising Histogram plotting function

In this tutorial, we will learn how to write a function to make a histograms using ggplot2 in R. Writing a function to create plots is useful, when you make a lot of plots, in this example, a lot of histograms. Thanks to the upcoming 2nd edition of R for Data Science by … [Read more...] about How to write a function make histograms with ggplot

Filed Under: ggplot2, R, Uncategorized Tagged With: plot function ggplot2

How to Add Colors to Axis Tick Label in ggplot2

datavizpyr · May 14, 2022 ·

How to add colors to axis tick labels using ggtext?

In this tutorial, we will learn how to add colors to axis tick labels in ggplot2. To add colors to axis labels we will use the R package "ggtext: Improved text rendering support for ggplot2" developed by Claus Wilke. Let us get started by loading the packages … [Read more...] about How to Add Colors to Axis Tick Label in ggplot2

Filed Under: ggplot2, R, Uncategorized Tagged With: add color to axis tick label, ggtext element_markdown()

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