Skip to content

Instantly share code, notes, and snippets.

@cimentadaj
Created August 16, 2016 19:21
Show Gist options
  • Save cimentadaj/20fa7a4bd84a6bb405bd42d97e4b8874 to your computer and use it in GitHub Desktop.
Save cimentadaj/20fa7a4bd84a6bb405bd42d97e4b8874 to your computer and use it in GitHub Desktop.
# Create the scatterplot
m <- ggplot(housing, aes(x=Land.Price.Index, y=Home.Price.Index)) + geom_point(); m
# Let's add the name, breaks and labels
m <- m + scale_y_continuous(name="Home Price Index", breaks=waiver(), labels=waiver()); m
m <- m + scale_x_continuous(name="Land Price Index", breaks=c(0,2,4,6,8), labels=c("Hi","this","is","a","trial"), limits=c(0,8)); m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment