drawBars | R Documentation |
Draw a linear barplot on the current plot. Fill if desired.
drawBars(x, y, width, base=0, fill=NULL, ...)
x |
x-coordinates |
y |
y-coordinates |
width |
bar width, computed if missing |
base |
y-value of the base of each bar |
fill |
valid R colour to fill the bars |
... |
further graphical parameters (see |
Jon T. Schnute, Scientist Emeritus,
Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
local(envir=.PBSmodEnv,expr={
if (dev.cur()>1) {
oldpar=par(no.readonly=TRUE); on.exit(par(oldpar)) }
plot(0:10,0:10,type="n")
drawBars(x=1:9,y=9:1,col="deepskyblue4",fill="cyan",lwd=3)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.