Skip to content

Instantly share code, notes, and snippets.

View jamesballard's full-sized avatar

James Ballard jamesballard

  • Melbourne
  • 00:58 (UTC +10:00)
View GitHub Profile
library(ggplot2)
?mpg
head(mpg)
str(mpg)
# Identify a scatter point
attach(mtcars)
plot(mpg, wt)
identify(x = mpg, y = wt, n = 3, label = row.names(mtcars))
detach(mtcars)