Skip to content

Commit

Permalink
fix: pass the base class into bivariate_plot_call
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Feb 27, 2024
1 parent c9f87bf commit ecf32ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/tm_g_association.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ srv_tm_g_association <- function(id,

# reference
ref_class <- class(ANL[[ref_name]])
ref_class <- ref_class[length(ref_class)]
if (is.numeric(ANL[[ref_name]]) && log_transformation) {
# works for both integers and doubles
ref_cl_name <- call("log", as.name(ref_name))
Expand Down Expand Up @@ -374,6 +375,7 @@ srv_tm_g_association <- function(id,

var_calls <- lapply(vars_names, function(var_i) {
var_class <- class(ANL[[var_i]])
var_class <- var_class[length(var_class)]
if (is.numeric(ANL[[var_i]]) && log_transformation) {
# works for both integers and doubles
var_cl_name <- call("log", as.name(var_i))
Expand Down

0 comments on commit ecf32ea

Please sign in to comment.