Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/plot.pedigree.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ plot.pedigree <- function(x, id = x$id, status = x$status,

boxsize <- symbolsize* min(ht1, ht2, stemp1, wd2) # box size in inches
hscale <- (psize[1]- boxsize)/diff(xrange) #horizontal scale from user-> inch
vscale <- (psize[2]-(stemp3 + stemp2/2 + boxsize))/ max(1, maxlev-1)
vscale <- (psize[2]-(stemp3 + stemp2 + boxsize))/ max(1, maxlev-1)
boxw <- boxsize/hscale # box width in user units
boxh <- boxsize/vscale # box height in user units
labh <- stemp2/vscale # height of a text string
legh <- min(1/4, boxh *1.5) # how tall are the 'legs' up from a child
par(usr=c(xrange[1]- boxw/2, xrange[2]+ boxw/2,
maxlev+ boxh+ stemp3 + stemp2/2 , 1))
par(usr=c(xrange[1]- boxw/2, xrange[2]+ boxw/2,
maxlev+ boxh+ stemp3/vscale + stemp2/vscale , 1))
## Doc: end of sizing
## Doc: Sizing
## Doc: subsection: drawbox
Expand Down