powered by
Draws a simple stock image of a person.
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, ... )
invisibly returns co-ordinates
x-axis offset from origin
y-axis offset from origin
scale upwards from 1x1 box
head size
half angle of neck in terms of head
location of centre of head relative to origin with scale 1
neck length
shoulder width
size radius of arc for shoulder
arm length
angle of arm from horizontal
width of arm
leg length
angle of leg from horizontal
width of leg
length of torso
other parameters passed to polygon()
Draws a figure at a particular location. With defaults, has centre at origin and fits in 1x1 box.
Dimensions customisable
plot(0,xlim=c(-1,1),ylim=c(-1,1),type="n") drawperson(0,0,1,col="yellow",border="red",lwd=3,lty=2)
Run the code above in your browser using DataLab