• 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

R

Multiple ways to remove legend in ggplot2

datavizpyr · April 19, 2023 ·

Four ways to remove legend in ggplot

In this post, we will learn how to remove legend of a plot made with ggplot2 in 4 different ways. Adding legend to a plot is often helpful to easily understand a plot. However there are scenarios legends can be redundant or we don't need them. In ggplot2, we have multiple … [Read more...] about Multiple ways to remove legend in ggplot2

Filed Under: ggplot2, R Tagged With: remove ggplot2 legend

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 encircle a set of points in R with ggplot2

datavizpyr · December 21, 2022 ·

how to encircle select. points using ggalt's geom_circle()

In this post, we will learn how to encircle data points with ggplot2. In R, there are multiple ways to highlight/annotate data points. Here we will use, ggalt, one of the ggplot2 extension packages to encircle data points. ggalt's geom_encircle() function can automagically … [Read more...] about How to encircle a set of points in R with ggplot2

Filed Under: ggplot2, R Tagged With: ggalt geom_encircle(), ggplot2 extension ggalt

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Interim pages omitted …
  • Page 36
  • Go to Next Page »

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