R: Plots the Scatter Plot with Smoothing

ggally_smooth {GGally} | R Documentation

## Plots the Scatter Plot with Smoothing

### Description

Add a smoothed condition mean with a given scatter plot.

### Usage

    ggally_smooth(data, mapping, ..., method = "lm")

    ggally_smooth_loess(data, mapping, ...)

    ggally_smooth_lm(data, mapping, ...)

### Arguments

`data` | data set using
`mapping` | aesthetics being used
`...` | other arguments to add to geom_point
`method` | `method` parameter supplied to `geom_smooth`

### Author(s)

Barret Schloerke schloerke@gmail.com

### Examples

     data(tips, package = "reshape")
     ggally_smooth(tips, mapping = ggplot2::aes(x = total_bill, y = tip))
     ggally_smooth(tips, mapping = ggplot2::aes_string(x = "total_bill", y = "tip"))
     ggally_smooth(tips, mapping = ggplot2::aes_string(x = "total_bill", y = "tip", color = "sex"))

[Package GGally version 1.3.2 Index]