draw_activity_effect: Draw activity effect on continuous variable.

Description Usage Arguments Value Examples

Description

Draw scatter plot of exercise time of specific exercise_type and effect_on_col (with regression line if corr is TRUE)

Usage

1
draw_activity_effect(dataset, exercise_type, effect_on_col, corr = TRUE)

Arguments

dataset

survey dataset

exercise_type

one of the factor value in ExerciseType column

effect_on_col

column name used for measuring excercise effect

corr

if TRUE regression line will be fitted to the plot

Value

scatter plot of exercise time of specific exercise_type and effect_on_col (with regression line if corr is TRUE)

Examples

1
2
draw_activity_effect(survey, "Vigorous Work", "Weight", FALSE)
draw_activity_effect(survey, "Moderate Work", "BMI")

jjankowiak/exploreNHANES documentation built on May 14, 2019, 2:07 p.m.