• 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 directly add labels on a plot with ggrepel

datavizpyr · July 21, 2024 ·

How to directly add labels on a plot

In this tutorial, we will learn how to add legends to a plot made with ggplot2 directly on the plot, so that it is much easier to understand the plot. When you make a plot with ggplot, adding legends to explain the plot is of great help to understand a plot. By default, ggplot2 … [Read more...] about How to directly add labels on a plot with ggrepel

Filed Under: ggplot2, ggrepel, R Tagged With: add labels directly, ggrepel add labels

3 Different ways to make bar plots with ggplot2

datavizpyr · July 17, 2024 ·

How to make barplot with geom_col()

In this post, we will see three different ways to make a barplot with count on y-axis in ggplot2. We will show how to make bar plot using geom_bar(), stat_count(), and geom_col() functions available in ggplot2 Bar plot with geom_bar() Bar plot with … [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 ·

How to add matching colors to keywords in ggplot2 title text

In this tutorial, we will learn how to color select words in title text with matching colors as in the plot made with ggplot. For example, if we had made a bar plot with two colors for two groups with ggplot2, we will learn how to color the group names in the title text with the … [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

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • 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