I am trying to add density lines around my scatterplot. Does anyone know how to edit this code to make it work? something to do with the 'p' argument i think
scatter4 = ggplot(mammal, aes(x = gestation, y = dream)) +
geom_point(colour = 'red') +
ggMarginal(p, type = "densigram") +
xlab("Gestation (in days)") +
ylab("Dreaming sleep (in hrs/day)")
