Description Usage Arguments Details Value Examples
Function provides snapshot of the linear relationship between two numeric variables (scatterplot and adjusted r value), as well as some summary statistics for the two numeric variables.
1 | data_snapshot(data, x, y)
|
data |
needs to be a data frame (for e.g., a tibble) |
x |
This input is a numeric variable from a tibble or dataframe, for e.g. column with numeric values |
y |
This input is a numeric variable from a tibble or dataframe, for e.g. column with numeric values |
When given two numeric variables, x and y, this function produces summary statistics (max, min, median and mean) and a plot that allows the user to get a quick snapshot of the data and in particular their linear relationship (if any). Generally, the adjusted r squared value, a value between 0 and 1 (displayed as a percentage), represents the proportion of variance observed for a dependent variable explained by the independent variable in a linear regression model.
This function returns summary statistics tables for numeric variables, a scatterplot and adjusted R squared value
1 2 | data_snapshot(mtcars, hp, mpg)
data_snapshot(gapminder::gapminder, lifeExp, gdpPercap)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.