### A simple scatter plot
rosetta::scatterPlot(
mtcars$mpg, mtcars$hp
);
### The same scatter plot, now with a regression line
### and its confidence interval added.
rosetta::scatterPlot(
mtcars$mpg, mtcars$hp,
regrLine=TRUE,
regrCI=TRUE
);
Run the code above in your browser using DataLab