Giter Site home page Giter Site logo

rplots's People

Contributors

thillux avatar willywinkel avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

willywinkel

rplots's Issues

Multiple coloured inputs for one graph

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 :)

show 0 line in plots

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

support for names at axis

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 ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.