Nothing
library(ggplot2)
test_that("geom_ecdf works", {
p_no_wts <- ggplot(
nhefs_weights,
aes(x = smokeyrs, color = qsmk)
) +
geom_ecdf() +
xlab("Smoking Years") +
ylab("Proportion <= x")
p_wts <- ggplot(
nhefs_weights,
aes(x = smokeyrs, color = qsmk)
) +
geom_ecdf(aes(weights = w_ato)) +
xlab("Smoking Years") +
ylab("Proportion <= x")
expect_doppelganger("ecdf (no weights)", p_no_wts)
expect_doppelganger("ecdf (weights)", p_wts)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.