qscatter: Create a qscatter plot similar to Stata

Description Usage Arguments Examples

Description

Create a qscatter plot similar to Stata

Usage

1
qscatter(dataset, xvar, yvar, lev = "", fun = "mean", bins = 20)

Arguments

dataset

Data to plot (data.frame or tibble)

xvar

Character indicating the variable to display along the X-axis of the plot

yvar

Character indicating the variable to display along the Y-axis of the plot

lev

Level in yvar to use if yvar is of type character of factor. If lev is empty then the first level is used

fun

Summary measure to apply to both the x and y variable

bins

Number of bins to use

Examples

1
2
qscatter(diamonds, "price", "carat")
qscatter(titanic, "age", "survived")

radiant.data documentation built on Nov. 27, 2020, 9:06 a.m.