# NOT RUN {
x = nuclearPed(father = "fa", mother = "mo", child = "boy")
m = marker(x, fa = 1, boy = 1:2, name = "SNP")
plot(x, marker = m)
# Alternative syntax if the marker is attached to x
x = setMarkers(x, m)
plot(x, marker = "SNP")
# Other options
plot(x, marker = "SNP", shaded = typedMembers(x),
starred = "fa", deceased = "mo")
# Labelling only some members
plot(x, id.labels = c("fa", "boy"))
# Labelling only some members, and renaming the father
plot(x, id.labels = c(FATHER = "fa", "boy"))
# Colours
plot(x, col = list(red = "fa", green = "boy"))
# Founder inbreeding is shown by default
founderInbreeding(x, "mo") = 0.1
plot(x)
# ... but can be suppressed
plot(x, fouInb = NULL)
# }
Run the code above in your browser using DataLab