[英]Removing labels from kinship2 pedigree plot
我正在使用kinship2繪制野生種群的血統書,並嘗試刪除個人標簽。 我已經在par()和plot()中嘗試了各種參數,但是它們要么不能擺脫標簽,要么會導致錯誤。 有任何想法嗎?
ped <- pedigree(id,dadid,momid,sex)
plot.pedigree(ped)
繪制時,我們可以為ID分配空白""
(或NA
):
#Example pedigrees object the manuals
library(kinship2)
data(sample.ped)
pedAll <- pedigree(sample.ped$id, sample.ped$father, sample.ped$mother,
sample.ped$sex, #affected=sample.ped$affected,
affected=cbind(sample.ped$affected, sample.ped$avail),
famid=sample.ped$ped)
ped2 <- pedAll['2']
#assign "" to id argument.
plot.pedigree(ped2, id = rep("", length(ped2$id)))
#or NA
#plot.pedigree(ped2, id = rep(NA, length(ped2$id)))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.