Description Usage Arguments Value Examples

Bivariate Scatterplot

1 2 3 4 |

`formula` |
a formula of the form y ~ x |

`data` |
a data frame if y and x are not vectors in the global environment or subsets of a data frame |

`xlab` |
the x axis label |

`ylab` |
the y axis label |

`col` |
color scheme. one of "blue" (the default), "red", "green", or "purple" |

`smooth` |
should a smoother line be added. Defaults to FALSE. |

`smoother` |
If FALSE the data are represented as points. If TRUE, a smooth density is used. The latter is useful for large sample sizes. |

`regline` |
should a regression line be added? Defaults to TRUE, with both robust and ordinary least squares lines being plotted. |

`font` |
Defaults to "serif" |

`inset` |
the inset of the legend. Defaults to 0.05 |

`legend.pos` |
the legend position. Defaults to "topright" |

`box.lty` |
the linetype of the legend box outline |

`box.cex` |
the size of the legend |

a plot

1 |

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.