powered by
Plot a dataframe, multiple ys against one x
dfplot(x, y, add = FALSE, xlab = "", ylab = "", myaxes = FALSE, xlim = NULL, ylim = NULL, mycol = NULL, mytype = "l", mypch = 20, mycex = 1, mylty = NULL, lwd = 1, xerror = NULL, yerror = NULL, mycolerrorbar = NULL, mylegend = NULL, mylegendcol = mycol, mylegendcex = 1, legendpos = "top")
a vector
a vector or a dataframe with the same length as x
logical, whether to add this plot to the previous one
character
logical, whether to display axes automatically
numeric
colours
numeric or character
errorbar, same dimension of x
same dimension of y
error bar colours
colors
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))) dfplot(x, y, yerror = yerror) # }
Run the code above in your browser using DataLab