drawperson {SPARRAfairness} | R Documentation |
drawperson
Description
Draws a simple stock image of a person.
Usage
drawperson(
xloc = 0,
yloc = 0,
scale = 1,
headsize = 0.16,
headangle = pi/8,
headloc = 0.5,
necklength = 0.1,
shoulderwidth = 0.1,
shouldersize = 0.05,
armlength = 0.4,
armangle = 7 * pi/8,
armwidth = 0.08,
leglength = 0.5,
legangle = 9 * pi/10,
legwidth = 0.15,
torsolength = 0.4,
...
)
Arguments
xloc |
x-axis offset from origin |
yloc |
y-axis offset from origin |
scale |
scale upwards from 1x1 box |
headsize |
head size |
headangle |
half angle of neck in terms of head |
headloc |
location of centre of head relative to origin with scale 1 |
necklength |
neck length |
shoulderwidth |
shoulder width |
shouldersize |
size radius of arc for shoulder |
armlength |
arm length |
armangle |
angle of arm from horizontal |
armwidth |
width of arm |
leglength |
leg length |
legangle |
angle of leg from horizontal |
legwidth |
width of leg |
torsolength |
length of torso |
... |
other parameters passed to polygon() |
Details
Draws a figure at a particular location. With defaults, has centre at origin and fits in 1x1 box.
Dimensions customisable
Value
invisibly returns co-ordinates
Examples
plot(0,xlim=c(-1,1),ylim=c(-1,1),type="n")
drawperson(0,0,1,col="yellow",border="red",lwd=3,lty=2)
[Package SPARRAfairness version 0.0.0.1 Index]