• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar

Python and R Tips

Learn Data Science with Python and R

  • Home
  • Python
  • Pandas
    • Pandas 101
  • tidyverse
    • tidyverse 101
  • R
  • Linux
  • Conferences
  • Python Books
  • About
    • Privacy Policy
You are here: Home / Archives for R / ggplot2

ggplot2

7 Tips to Combine Multiple ggplots Using Patchwork

January 7, 2020 by cmdlinetips

Add Tags to combined plot: Patchwork

Patchwork, the R package that lets you combine multiple figures made by ggplot2, got a big update late last year and it is on CRAN now. If you have not heard of Patchwork, it is an R package made by the awesome Thomas Lin Pedersen. Patchwork lets you combine separate plots made by ggplot to […]

Filed Under: combine plots patchwork, R Tagged With: patchwork, R

9 Tips to Make Better Scatter Plots with ggplot2 in R

November 17, 2019 by cmdlinetips

Scatter plot tips: Color & Shape by variable

Scatter plot is one of the common data visualization method used to understand the relationship between two quantitative variables. When there is strong association between two variables you would easily see the relationship with scatterplot. However, when the relationship is subtle it may be tricky to see it. In this post we will see 9 […]

Filed Under: R, R Tips, scatter plot ggplot2, Scatter Plot Tips, tidyverse 101 Tagged With: ggplot2 scatterplot, Scatter Plot with R

8 tips to make better barplots with ggplot2 in R

October 22, 2019 by cmdlinetips

barplot with top n

Barplots or barcharts are extremely handy visualization technique for a variety of situations. It is of great use when you have multiple of categories and quickly visualize the counts of each category. In this post, we will start with how to make simple barplots using ggplot2 in R. Then we will see many examples of […]

Filed Under: barcharts with R, barplots with ggplot2 Tagged With: barcharts in R, barplots in R, reorder barplots

How To Change Legend Title in ggplot2?

October 17, 2019 by cmdlinetips

ggplot2 change legend title with guides()

In this post, we will see multiple examples of how to change the legend title in ggplot2. When you make a plot with ggplot2 and color/highlight data points by a variable in the input dataframe, ggplot2 uses the name of the variable present in the dataframe. However, sometimes you might want to change the legend […]

Filed Under: change legend title ggplot2, R Tips, tidyverse 101 Tagged With: ggplot change legend title, ggplot2, ggplot2 legend title

8 ggplot themes to make your plots look great

October 15, 2019 by cmdlinetips

ggplot theme grey example

ggplot2 is awesome. It enables people to easily make high quality data visualization plots. However, people who spent a lot of time with ggplot2 have love/hate relationship with the default ggplot2 theme, where a plot is on a grey background. The default ggplot2 theme is called theme_grey() or theme_gray(). In addition to the default theme, […]

Filed Under: ggplot2 themes Tagged With: ggplot themes

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Go to Next Page »

Primary Sidebar

Subscribe to Python and R Tips and Learn Data Science

Learn Pandas in Python and Tidyverse in R

Tags

Altair Basic NumPy Book Review Data Science Data Science Books Data Science Resources Data Science Roundup Data Visualization Dimensionality Reduction Dropbox Dropbox Free Space Dropbox Tips Emacs Emacs Tips ggplot2 Linux Commands Linux Tips Mac Os X Tips Maximum Likelihood Estimation in R MLE in R NumPy Pandas Pandas 101 Pandas Dataframe Pandas Data Frame pandas groupby() Pandas select columns Pandas select_dtypes Python Python 3 Python Boxplot Python Tips R rstats R Tips Seaborn Seaborn Boxplot Seaborn Catplot Shell Scripting Sparse Matrix in Python tidy evaluation tidyverse tidyverse 101 Vim Vim Tips

RSS RSS

  • How to convert row names to a column in Pandas
  • How to resize an image with PyTorch
  • Fashion-MNIST data from PyTorch
  • Pandas case_when() with multiple examples
  • An Introduction to Statistical Learning: with Applications in Python Is Here
  • 10 Tips to customize ggplot2 title text
  • 8 Plot types with Matplotlib in Python
  • PCA on S&P 500 Stock Return Data
  • Linear Regression with Matrix Decomposition Methods
  • Numpy’s random choice() function

Copyright © 2025 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version