Skip to content

Instantly share code, notes, and snippets.

@brunaw
Created February 15, 2018 18:48
Show Gist options
  • Save brunaw/bf3b055207a475794b3e13c3f90167eb to your computer and use it in GitHub Desktop.
Save brunaw/bf3b055207a475794b3e13c3f90167eb to your computer and use it in GitHub Desktop.
ggplot(data.frame(x = c(0, 1)), aes(x)) +
stat_function(fun=function(x){
dgunit(y = x, mu = mu, phi = phi)
}, color = "red2", size = 1.3) +
guides(fill = FALSE) +
theme_minimal() +
ylab(expression("f(y)")) +
xlab(expression(y)) +
theme(
axis.title.x = element_text(size = 16),
axis.title.y = element_text(size = 16)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment