Skip to content

Instantly share code, notes, and snippets.

@dhavalpotdar
Last active March 17, 2021 10:30
Show Gist options
  • Save dhavalpotdar/d32446aa59d94f7a32f195704f65c2f2 to your computer and use it in GitHub Desktop.
Save dhavalpotdar/d32446aa59d94f7a32f195704f65c2f2 to your computer and use it in GitHub Desktop.
Draw a sine plot in R.
x <- seq(0, 2 * pi, length = 100)
sinx <- sin(x)
plot(x, sinx, type = "l")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment