• 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

Uncategorized

How to reverse legend key order in ggplot2

datavizpyr · January 19, 2023 ·

How to reverse legend key order in ggplot2

In this tutorial, we will learn how to reverse the order of legend keys in ggplot2. In ggplot2, when we color by a variable using color or fill argument in side aes(), we get a legend with keys showing which keys match which colors. Here we will show how to reverse the … [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

In this tutorial, we will learn how to increase the color legend's point (or legend key) size in ggplot2. Often when you make a plot with multiple groups and large number of data points, the legend key for the color variable are small and can be not legible in the plot. Here … [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

In this tutorial, we will learn how to make lollipop plot using ggalt, one of the ggplot2 extension packages. A lollipop plot is a great alternative for bar plot as the amount ink used to make the lollipop plot is much smaller. ggalt, R package developed by @hrbrmstr, has a … [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

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