Last active
August 29, 2015 14:16
-
-
Save samueljackson92/739bf1d2caa34c53aa15 to your computer and use it in GitHub Desktop.
Scatterplot example in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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