Sha256: e8d1695fcd79b58d854f1671c5ccda71d6ff02378048ba91ac8dd98cc20461ea

Contents?: true

Size: 616 Bytes

Versions: 6

Compression:

Stored size: 616 Bytes

Contents

#! /usr/bin/env Rscript

library(ggplot2)
args <- commandArgs(trailingOnly = TRUE)

data <- read.table(args[1], header=TRUE)
output <- args[2]
x_axis <- args[3]
y_axis <- args[4]
density <- args[5]
x_tag <- args[6]
y_tag <- args[7]
size_tag <- args[8]
x_order <- unique(data[[x_axis]])
data[[x_axis]] <- factor(data[[x_axis]], levels = x_order)

pdf(file.path(output, 'scatterplot.pdf'))
	ggplot(data, aes(x=data[[x_axis]], y=data[[y_axis]])) + 
		geom_point(aes(size=data[[density]])) +
		xlab(x_tag) +
		ylab(y_tag) +
		labs(size = size_tag) +
		theme(axis.text.x = element_text(angle = 45, hjust = 1))
dev.off()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pets-0.2.5 external_code/plot_scatterplot.R
pets-0.2.4 external_code/plot_scatterplot.R
pets-0.2.3 external_code/plot_scatterplot.R
pets-0.1.4 bin/plot_scatterplot.R
pets-0.1.3 bin/plot_scatterplot.R
pets-0.1.2 bin/plot_scatterplot.R