You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating a plot to assess the type of relationship in the sample, I do get an R script erro.
$ Rscript --no-save Relatedness.R
Error in legend(1, 1, xjust = 1, yjust = 1, legend = levels(relatedness$RT), :
'legend' is of length 0
Execution halted.
Activity
gc-content commentedon Jun 9, 2022
In Relatedness.R change line:
relatedness = read.table("pihat_min0.2.genome", header=T)to:
relatedness = read.table("pihat_min0.2.genome", header=T, stringsAsFactors = T)mpage21 commentedon Sep 9, 2022
Additionally, on the legend line you could change
levels(relatedness$RT)tounique(relatedness$RT)YachengPan commentedon Sep 4, 2023