Description Usage Arguments Value Examples
Plot a weighted histogram of an NHANES variable
1 2 | nhanes_hist(nhanes_data, column, comment_column, weights_column = "",
filter = "", transform = "", ...)
|
nhanes_data |
data frame containing NHANES data |
column |
column name of the variable to plot |
comment_column |
comment column of the variable to plot |
weights_column |
name of the weights column |
filter |
logical expression used to subset the data |
transform |
transformation to apply to the column. Accepts any function name, for example: "log" |
... |
parameters passed through to svyhist function |
a data frame
1 2 3 4 5 6 | ## Not run:
dat <- nhanes_load_data("PFC_G", "2011-2012", demographics = TRUE)
nhanes_hist(dat, "LBXPFOA")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.