From 4a9bd702cc6585bdbd5f749a05a31169c2ed9dfb Mon Sep 17 00:00:00 2001 From: dyammons <91163228+dyammons@users.noreply.github.com> Date: Sun, 20 Feb 2022 11:31:34 -0700 Subject: [PATCH] Update hierarchy.R Line 38 which adds an additional class type to the data structure does not play well with other functions (such as gghighlight), so removal of the line keeps the data structure as a data.frame which avoids downstream errors. I only commented the line out, but it could likely be removed. Unless the removal of this line results in conflicts in other scrabble specific functions. Removal fixed my problems. --- R/hierarchy.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/hierarchy.R b/R/hierarchy.R index 5981a73..82db943 100644 --- a/R/hierarchy.R +++ b/R/hierarchy.R @@ -35,6 +35,6 @@ hierarchy = function(m, quadrants = NULL, log.scale = T) { if (!log.scale) dat = dplyr::transmute(dat, X = x, Y = y) else dat = dplyr::transmute(dat, X = x.scaled, Y = y.scaled) rownames(dat) = rows - class(dat) = append(class(dat), 'hierarchy') + #class(dat) = append(class(dat), 'hierarchy') dat }