Skip to content

Commit

Permalink
chore: replace the qenv function with ggplot2 equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Oct 16, 2023
1 parent ecca50b commit 4cbc4a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/tm_variable_browser.R
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,10 @@ srv_variable_browser <- function(id,
)

output$variable_summary_table <- DT::renderDataTable({
browser()
var_summary_table(
plotted_data()$data,
treat_numeric_as_factor(),
TRUE,
input$variable_summary_table_rows,
if (!is.null(input$remove_outliers) && input$remove_outliers) {
req(input$outlier_definition_slider)
Expand Down Expand Up @@ -938,7 +939,7 @@ plot_var_summary <- function(var,

if (numeric_as_factor) {
var <- factor(var, levels = sort(unique(var)))
p <- qplot(var)
ggplot(NULL, aes(x = var)) + geom_histogram(stat = "count")
} else {
# remove outliers
if (outlier_definition != 0) {
Expand Down

0 comments on commit 4cbc4a5

Please sign in to comment.