Skip to content

Instantly share code, notes, and snippets.

@samueljackson92
Last active August 29, 2015 14:16
Show Gist options
  • Save samueljackson92/739bf1d2caa34c53aa15 to your computer and use it in GitHub Desktop.
Save samueljackson92/739bf1d2caa34c53aa15 to your computer and use it in GitHub Desktop.
Scatterplot example in R
args <- commandArgs(trailingOnly = TRUE)
file_name <- args[1]
library('ggplot2')
data_df <- read.csv(file_name, header=TRUE)
plot <- ggplot(data_df, aes(x=X0, y=X1)) + geom_point(aes(color=class))
# Remove ticks marks from plot
plot + scale_y_discrete(breaks=NULL) + scale_x_discrete(breaks=NULL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment