Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

multsymbolbox

Draw boxes filled with symbols


Description

Draw boxes on the current figure filled with symbols representing individual counts.

Usage

multsymbolbox(x1,y1,x2,y2,tot,relw=0.8,fg=par("fg"),bg=par("bg"),
  box=TRUE,debug=FALSE,...)

Arguments

x1

numeric vector: left sides of boxes

y1

numeric vector: bottom sides of boxes

x2

numeric vector: right sides of boxes

y2

numeric vector: top sides of boxes

tot

numeric vector: total numbers of symbols to put in each box

relw

relative width (relative to height) of symbols

n

fg

foreground color(s)

bg

background color(s)

box

(logical) draw box borders?

debug

debug output?

...

additional arguments to polygon() for drawing boxes

Value

none

Author(s)

Ben Bolker

Examples

plot(1:10,1:10,type="n")
 multsymbolbox(c(2,4),5,c(4,5),8,tot=c(10,8))

plotrix

Various Plotting Functions

v3.8-1
GPL (>= 2)
Authors
Jim Lemon, Ben Bolker, Sander Oom, Eduardo Klein, Barry Rowlingson, Hadley Wickham, Anupam Tyagi, Olivier Eterradossi, Gabor Grothendieck, Michael Toews, John Kane, Rolf Turner, Carl Witthoft, Julian Stander, Thomas Petzoldt, Remko Duursma, Elisa Biancotto, Ofir Levy, Christophe Dutang, Peter Solymos, Robby Engelmann, Michael Hecker, Felix Steinbeck, Hans Borchers, Henrik Singmann, Ted Toal, Derek Ogle, Darshan Baral, Ulrike Groemping, Bill Venables
Initial release
2021-01-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.