Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion R/drawone.R
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ drawone <-
# determine x position of qtl

if (nrow(qtldf) > 0) {
hatch <- 0
if(!is.null(qtldf$hatch))
hatch <- ifelse(qtldf$hatch, 30, NA) # if hatch is TRUE, set density to 30
if(is.null(qtldf$border))
qtldf$border <- NA
for (ql in 1:nrow(qtldf)) {
# if there are labels on y axis where qtl needs to be drawn
# first decide if QTL line (so to eo) or text label is longest
Expand Down Expand Up @@ -521,7 +526,8 @@ drawone <-
x2[1] + posmult * (qtlxpos + strwidth("M") + lgwpct / 3),
qtldf$ei[ql],
col = qtldf$col[ql],
border = qtldf$col[ql]
density = hatch[ql],
border = qtldf$border[ql]
)
text(
x2[1] + posmult * (qtlxpos + strwidth("MM") + lgwpct / 3),
Expand Down
2 changes: 2 additions & 0 deletions R/lmv.linkage.plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@
#' \item ei End of inner interval. Numeric.
#' \item eo End of outer interval. Numeric.
#' \item col Color for QTL.
#' \item border Color of QTL rectangle border (optionnal)
#' \item hatch Hatch or not QTL rectangle (optionnal). Logical.
#' }
#'
#' @param qtlscanone Optional scanone data frame from package r/qtl. If provided,
Expand Down