powered by
Make an interactive scatterplot with regression line(s)
ggPoints(data, mapping, smooth = TRUE, se = TRUE, method = "auto", formula = y ~ x, fullrange = FALSE, level = 0.95, maxfactorno = 6, digits = 2, title = NULL, subtitle = NULL, caption = NULL, tooltip = NULL, interactive = FALSE, ...)
a data.frame
Set of aesthetic mappings created by aes or aes_.
Logical. Add regression lines to the scatter plot
Logical. display confidence interval around linear regression? (TRUE by default)
smoothing method (function) to use, eg. "lm", "glm", "gam", "loess", "rlm"
formula to use in smoothing function, eg. y ~ x, y ~ poly(x, 2), y ~ log(x)
should the fit span the full range of the plot, or just the data
level of confidence interval to use (0.95 by default)
An integer. Maximum unique number of a numeric vector treated as a factor
integer indicating the number of decimal places
The text for plot title
The text for plot subtitle
The text for plot caption
A character string of column name be included in tooltip. Default value is NULL
A logical value. If TRUE, an interactive plot will be returned
other arguments passed on to geom_point
# NOT RUN { require(ggplot2) require(ggiraph) require(plyr) ggPoints(aes(x=wt,y=mpg,color=carb),data=mtcars,interactive=TRUE,maxfactno=3) # }
Run the code above in your browser using DataLab