• 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

ggplot2

Error in ggplot(): Mapping should be created with `aes()`

datavizpyr · July 17, 2022 ·

How to fix ggplot2 error: Mapping should be created with aes

In this post we will see an example of one of most common errors while making a plot with ggplot2 and how to fix them. Let us we are trying to make a scatter plot using ggplot2 using the following code. Here we use mtcars dataset built-in R to make the scatter … [Read more...] about Error in ggplot(): Mapping should be created with `aes()`

Filed Under: ggplot2, R Tagged With: ggplot2 error

ggplot2 errot: how to fix could not find function “ggplot

datavizpyr · July 7, 2022 ·

How to fix Error in ggplot(., aes... could not find function ggplot

In this post we will learn how to fix one of the most common ggplot2 errors, saying "could not find function "ggplot"" Let us consider an example where we are trying to make boxplot using iris, one of the R built-in datasets. We have been extra careful and write a … [Read more...] about ggplot2 errot: how to fix could not find function “ggplot

Filed Under: ggplot2, R Tagged With: ggplot2 error, how to fix could not find function ggplot

How to Make Grouped Violinplot with jittered data points in R

datavizpyr · July 3, 2022 ·

Grouped violin plot with jittered points using geom_sina() in ggforce

In this post, we will learn how to make grouped violin plot with jittered data points on top of it using ggplot2 in R. One of the challenges in making grouped violin or box plots with jittered data points is proper alignment of data points and the underlying plot. In an earlier … [Read more...] about How to Make Grouped Violinplot with jittered data points in R

Filed Under: geom_sina in ggforce, ggplot2, R Tagged With: Grouped violin plot with data points, Grouped violin plot with geom_sina()

How to add water mark on a ggplot

datavizpyr · May 20, 2022 ·

How to add water mark to a plot in R

In this tutorial, we will learn how to add water marks to a plot made in R. We will use ggplot2 to make the plot and use the R package cowplot to add water mark on top the plot. The cowplot package developed by Claus Wilke functions to draw with and on plots. These … [Read more...] about How to add water mark on a ggplot

Filed Under: ggplot2, R Tagged With: add water mark ggplot2

How to Reverse and Reorder Facets in ggplot2 (R) with fct_rev, factor, and fct_relevel

datavizpyr · May 15, 2022 ·

How to reverse the order of facets in R

By default, ggplot2 arranges facets in alphabetical order based on the factor levels of the variable you facet by. This behavior is logical but not always useful. Analysts often need to reverse or customize facet order to match reporting requirements, presentation style, or … [Read more...] about How to Reverse and Reorder Facets in ggplot2 (R) with fct_rev, factor, and fct_relevel

Filed Under: ggplot2, R Tagged With: reverse facet order ggplot2

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • Page 14
  • Interim pages omitted …
  • Page 28
  • Go to Next Page »

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