Skip to content

Instantly share code, notes, and snippets.

@abelsonlive
Created September 18, 2012 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abelsonlive/3743477 to your computer and use it in GitHub Desktop.
Save abelsonlive/3743477 to your computer and use it in GitHub Desktop.
# fill area under a line:
plot(x,y, type="n)
lines(x,y)
polygon( c(min(x), x, max(x)), c( min(y), y, min(y)), density=100 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment