Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save yutannihilation/daca48b51c9847f94694 to your computer and use it in GitHub Desktop.

Select an option

Save yutannihilation/daca48b51c9847f94694 to your computer and use it in GitHub Desktop.
---
title: |
Plots the Histograms by Faceting
rdname: ggally_facethist
date: 2015-06-06
output: html_document
layout: article
category: ggally
images:
FRONTFOMATTER_IMAGES
---
```{r, echo = FALSE, message = FALSE}
library(ggplot2)
library(GGally)
```
```{r ggally_facethist, cache = TRUE}
data(tips, package = "reshape")
ggally_facethist(tips, mapping = ggplot2::aes(x = tip, y = sex))
ggally_facethist(tips, mapping = ggplot2::aes_string(x = "tip", y = "sex"), binwidth = 0.1)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment