site_snp_count_bp error handler

This commit is contained in:
Tanushree Tunstall 2022-09-09 19:37:38 +01:00
parent 0a4be280c3
commit 4f01695391

View file

@ -40,6 +40,9 @@ site_snp_count_bp <- function (plotdf,
)
{
if (is.null(plotdf)){
return(ggplot() + annotate(x=1,y=1,"text", label="NO DATA")+theme_void())
}
plotdf = as.data.frame(plotdf)
# dim of plotdf
cat(paste0("\noriginal df dimensions:"