Creating risk plot in R -


i'd create risk communication plot in r using 10 10 grid of 100 "people". there's nice example here: http://static.www.bmj.com/content/bmj/351/bmj.h5496/f3.large.jpg.

some simple data be:

to.plot = data.frame(id=1:100, dead=rbinom(100, 1, 0.5))  


Comments

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -