• 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 ggplot2

ggplot2

dplyr select(): Select one or more variables from a dataframe

July 18, 2020 by cmdlinetips

dplyr select(): How to Select Columns?

dplyr, R package part of tidyverse, provides a great set of tools to manipulate datasets in the tabular form. dplyr has a set of core functions for “data munging”. Here is the list of core functions from dplyr select() picks variables based on their names. mutate() adds new variables that are functions of existing variables […]

Filed Under: dplyr select(), R, tidyverse 101 Tagged With: ggplot2, R

ggplot2 3.3.0. Is Here : Two New Features You Must Know

March 6, 2020 by cmdlinetips

What is New in ggplot2 v3_3_0?

ggplot2, the R package that lets you create graphics using the Grammar of Graphics has a new version. The new version of ggplot2; version 3.3.0 has lots of changes and it available on CRAN. Introducing ggplot2 v 3.3.0 Thomas Lin Pedersen says that the new version “is packed with features, big and small” and a […]

Filed Under: ggplot2, ggplot2 version 3.3.0, R Tagged With: ggplot2, gplot2 version 3.3.0, R

Faceting and Reordering with ggplot2

February 28, 2020 by cmdlinetips

Faceting and reordering: reorder_within() tidytext

Faceting is a great data visualization technique that uses “small multiples” i.e. the use of same type of plots multiple times in a panel. Each “small multiple” is a same type of plot but for a different group or category in the data. ggplot2 makes it really easy to make such “small multiples” with faceting. […]

Filed Under: facet_wrap and reorder, facet_wrap R, R, R reorder_within, reorder_within tidytext Tagged With: ggplot2, R, reorder_within

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

How To Change Axis Tick Marks in R?

March 22, 2019 by cmdlinetips

Boxplot before fixing x-axis ticks mark

One of most common things one might do while making plots is to change tiny details of the plot to make them better. Often, one of such adjustments are changing x-axis tick mark label/text on a plot made with ggplot2 in R. Let us use ggplot2 to make plot first and then fix its x-axis […]

Filed Under: Change axis ticks mark labels ggplot2, ggplot2, R Tips Tagged With: Change axis ticks mark labels ggplot2, Change x-axis tick mark, ggplot2, R

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