thillux / rplots Goto Github PK
View Code? Open in Web Editor NEWcolored R plots
License: BSD 3-Clause "New" or "Revised" License
colored R plots
License: BSD 3-Clause "New" or "Revised" License
Another enhancement idea:
what about multiple coloured lines with legend per graph?
say I want to track killed bier against mate bottles per month.
Just an idea :)
Maybe thats an enhancement, but having the zero line in the plots would be great for overview sometimes. I've nearly done it by setting yLim <- range(c(0,yData-e)) + c(0, deltaY)
in plotWithConfidence
, but now high value seem to disappear.
example input save as "file":
50 0.101109457672 0.0344515183477
100 0.0952124669312 0.0235779036365
250 0.0955709876543 0.0193970525015
500 0.0953637566138 0.0167084040868
750 0.091978505291 0.0148734158778
1000 0.0910726629826 0.0134852754956
example code to execute:
#!/usr/bin/Rscript
# arg1 = input, arg2 = output, arg3 = xTitle, arg4 = yTitle
# input format:
# name average confidence
source("plot.r")
args<-commandArgs(TRUE)
doConfidenceCategorialFromFile <- function(name) {
a <- read.table(name)
plotWithConfidence(t(a[1]), t(a[2]), t(a[3]), pdfFile=args[2], xDataIsCategorial=TRUE, xTitle=args[3], yTitle=args[4])
}
doConfidenceCategorialFromFile(args[1])
call:
Rscript confidence.r file file-confidence.pdf "# Nodes" "Distance"
ty in advance
Hi,
I tried to make plots with the plotWithConfidence
function and put strings on the axis instead of numbers.
My idea was to call plotWithConfidence(a, y, abs(y/10.0), pdfFile="conf.pdf")
with
x <- c("bier", "mate", "water", "Weizen")
and
y <- rnorm(length(x))
.
at the moment the script throws
Error in r[i1] - r[-length(r):-(length(r) - lag + 1L)] :
non-numeric argument to binary operator
Calls: doConfidence -> plotWithConfidence -> diff -> diff.default
Execution halted
Would be awesome dude ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.