Skip to content

Instantly share code, notes, and snippets.

@bharatbhole
Created February 4, 2012 12:50
Show Gist options
  • Save bharatbhole/1737652 to your computer and use it in GitHub Desktop.
Save bharatbhole/1737652 to your computer and use it in GitHub Desktop.
customize axes labels
# Line plot with custom title for the x-axis (observations) and
# y-axis (Value)
plt <- ggplot() + geom_line(data=df, aes(x=xcol, y=ycol)) +
xlab("Observation") +
ylab("Value")
print(plt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment