Learn R Programming

PBSmodelling (version 2.67.266)

drawBars: Draw a Linear Barplot on the Current Plot

Description

Draw a linear barplot on the current plot.

Usage

drawBars(x, y, width, base = 0, ...)

Arguments

x
x-coordinates
y
y-coordinates
width
bar width, computed if missing
base
y-value of the base of each bar
...
further graphical parameters (see par) may also be supplied as arguments

Examples

Run this code
local(envir=.PBSmodEnv,expr={
  oldpar = par(no.readonly=TRUE)
  plot(0:10,0:10,type="n")
  drawBars(x=1:9,y=9:1,col="deepskyblue4",lwd=3)
  par(oldpar)
})

Run the code above in your browser using DataLab