Nothing
test_that("stat_prop works as expected", {
df <- as.data.frame(Titanic)
p <- ggplot(df) +
aes(x = Class, fill = Survived, weight = Freq, by = Class) +
geom_bar(position = "fill")
result <- expect_silent(
p + geom_text(stat = "prop", position = position_fill(.5))
)
expect_s3_class(result, "ggplot")
})
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.