• 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

How to Reverse Order in Facet in ggplot

datavizpyr · May 15, 2022 ·

How to reverse the order of facets in R

In this tutorial, we will learn how to reverse the order of facets, multiple small plots, made with ggplot2 in R. We will use R package forcats's handy function fct_rev() to reverse the order of facets made using facet_wrap() function in ggplot2. Let us load tidyverse suite of R … [Read more...] about How to Reverse Order in Facet in ggplot

Filed Under: ggplot2, R Tagged With: reverse facet order 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()

How to Add Error Values to Barplot Labels in R with ggplot2

datavizpyr · April 14, 2022 ·

Add Error Values as Labels to Barplot w

In this tutorial, we will learn how to add error values as labels on bars in a barplot. Thanks to @charliejhadley's nice tip showing how to add errors on barplot labels using str_glue() function. The main idea behind adding errors to labels is very similar to adding barplot … [Read more...] about How to Add Error Values to Barplot Labels in R with ggplot2

Filed Under: ggplot2, R Tagged With: add errors as labels to barplot in ggplot2

Bump Plot with ggbump

datavizpyr · March 28, 2022 ·

Customizing Bump Plot made with ggbump

Bump plots are line plots with dots showing the data points. Bump plots can be useful in understanding the change in rank over time. In this tutorial, we will learn how to make bump plots using ggbump package, a ggplot2 extension package. To make a bump plot we will use the … [Read more...] about Bump Plot with ggbump

Filed Under: ggplot2, R Tagged With: bump plot with ggbump, ggbump ggplot2 extension

How to wrap long axis tick labels into multiple lines in ggplot2

datavizpyr · January 29, 2022 ·

Wrapping or Folding long axis tick labels in a ggplot into multiple lines

In this tutorial, we will learn how to wrap really long axis tick labels into multiple lines in R while making plots with ggplot2. A long axis text labels make harder to understand the plot and ofter it overlaps with the neighboring labels and obscuring the labels. Here we will … [Read more...] about How to wrap long axis tick labels into multiple lines in ggplot2

Filed Under: barplot ggplot2, R Tagged With: wrap long axis tick labels ggplot2

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • Page 14
  • 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