utils::globalVariables(c("ggplot","geom_density","ggplot","geom_smooth","geom_point"))
my_density <- function(data,mapping,...){
ggplot(data=data,mapping=mapping)+
geom_density(...,lwd=1)}
my_smooth <- function(data,mapping,...){
ggplot(data=data,mapping=mapping)+
geom_smooth(...,method="lm",se=FALSE)+
geom_point(...)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.