Description Usage Arguments Value Examples

View source: R/plotting_functions.R

scatter plot with nice defaults. automatically tests for a linear association between your two variables, draws regression lines, prints stats to the plot,plots marginal histograms, etc.

1 2 3 |

`x` |
vector of data for the x axis |

`y` |
vector of data for the y axis |

`xlab` |
x label |

`ylab` |
y label |

`title` |
main title |

`line` |
logical. draw regression line? defaults to T |

`stats` |
logical. compute sample size, p-value for regression slope, and r squared value and print to the corner of the graph? defaults to TRUE |

`color` |
color of data points. defaults to "black" |

`line_col` |
color of regression line. defaults to "red" |

`confidenceInterval` |
logical. plot confidence bands about the slope? |

`plottingCharacter` |
type of plotting character. defaults to 16, i.e., solid point |

`rug` |
logical. plot a rug plot along the x and y axes? defaults to FALSE |

`...` |
other arguments to par() |

None

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.