R - socrateslab/zh GitHub Wiki

https://campus.datacamp.com/courses/data-visualization-with-ggplot2-1

500px

require(MASS)
require(ggplot2)

ggplot(mammals, aes(x = body, y = brain, label = rownames(mammals))) + 
  geom_point(alpha = 0.6) + 
  geom_text()+
  coord_fixed()+
  scale_x_log10(expression("Body Weight (log"["10"]*" (Kg))")) + 
  scale_y_log10(expression("Brain Weight (log"["10"]*" (Kg))")) + 
  stat_smooth(method = "lm", col = '#C42126', 
              se = FALSE, size = 1)+
  theme_bw()
⚠️ **GitHub.com Fallback** ⚠️