Description Usage Arguments Details Examples
View source: R/scatter-chart.R
This function is a convinient overlay for creating a beautiful scatter plot using ggplot2
1 2 3 4 5 |
data |
data frame containing data for plotting |
x |
character string specifying name of x variable in data frame |
y |
character |
na.rm |
a logical indicating whether NA values should be removed |
name.label |
character string specifying column name of names for textual annotations |
name.labels.show |
numeric or character string indicating either the number of label names to show or the specific names (details) |
label.just |
numeric vector with length two setting the horizontal and the vertical text alignment for data point labels |
title |
character string specifying chart title |
sub.title |
character string specifying chart sub title |
y.title |
character string specifying y-axis title |
x.title |
character string specifying x-axis title |
x.min |
numeric setting minimum limit on x-axis |
x.max |
numeric setting maximum limit on x-axis |
y.min |
numeric setting minimum limit on y-axis |
y.max |
numeric setting maximum limit on y-axis |
prediction.interval |
logical indicating whether a prediction interval should be computed and ploted |
If the name.labels.show is numeric the data point labels shown are based on the distance between actual and fitted y-values. If the variable is set to 3 then the three points with largest absolute distance between actual y-values and the fitted values will have their name shown. This functionality requires that the prediction.interval is set to TRUE. If the name.labels.show is a character string then names are explicitly shown in the scatter plot.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.