Description Usage Arguments Author(s) See Also Examples
Hexagon binning will be used for conditional plots.
1 | svydbcoplot(formula, by, design)
|
formula |
Formula indicating x and y. i.e. y~x. |
by |
Formula indicating the conditions of each plot. i.e by~by2 |
design |
|
Charco Hui
svydbdesign
, svydbhexbin
, svydbhexplot
1 2 3 4 5 6 7 8 9 10 11 | data(nhane)
nh.dbsurv = svydbdesign(st = SDMVSTRA, wt = WTMEC2YR, id = SDMVPSU, data = nhane)
svydbcoplot(Age ~ Height, by = SmokeNow~Gender, design = nh.dbsurv)
# OR with a database connection
# library(MonetDBLite)
# library(DBI)
# library(dbplyr)
# con = dbConnect(MonetDBLite())
# dbWriteTable(con, "nhane", nhane)
# nhane.db = tbl(con, "nhane")
# nh.dbsurv = svydbdesign(st = SDMVSTRA, wt = WTMEC2YR, id = SDMVPSU, data = nhane.db)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.