powered by
Plot a dataframe, one y against multiple xs
dfplot2(x, y, xlab = "x", ylab = "y", xlim = NULL, ylim = NULL, mycol = NULL, mylty = NULL, xerror = NULL, yerror = NULL, mycolerrorbar = NULL, mylegend = NULL)
a vector or a dataframe with the same length as x
a vector
character
numeric
colours
errorbar, same dimension of x
same dimension of y
error bar colours
a figure
# NOT RUN { x <- seq(0, 2 * pi, length.out = 100) y <- data.frame(sin(x), cos(x)) yerror <- data.frame(abs(rnorm(100, sd = 0.3)), abs(rnorm(100, sd = 0.1))) dfplot2(y, x, xerror = yerror) # }
Run the code above in your browser using DataLab