Skip to content

Commit

Permalink
add data to plot
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Nov 20, 2024
1 parent 52a01a7 commit 5d96c70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/inspect-model.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ inspect_model <- function(mod, private) {
})
output$prior_predicted <- plotly::renderPlotly({
plotly::style(plotly::ggplotly(plot(prior(),
upper_censoring_limit = private$stan_input_data$upper_censoring_limit,
lower_censoring_limit = private$stan_input_data$lower_censoring_limit)), textposition = "right")
data = private$data,
upper_censoring_limit = private$stan_input_data$upper_censoring_limit,
lower_censoring_limit = private$stan_input_data$lower_censoring_limit)), textposition = "right")

Check warning on line 102 in R/inspect-model.R

View check run for this annotation

Codecov / codecov/patch

R/inspect-model.R#L98-L102

Added lines #L98 - L102 were not covered by tests
})

# model inputs
Expand Down Expand Up @@ -147,7 +148,7 @@ inspect_model <- function(mod, private) {

output$data <- plotly::renderPlotly({
if (nrow(data()) > 0) {
gp <- plotly::style(plotly::ggplotly(plot_inputs()), textposition="right")
gp <- plotly::style(plotly::ggplotly(plot_inputs()), textposition = "right")
if (selected_covariate() != "None") {
return(facet_strip_bigger(gp, 30))

Check warning on line 153 in R/inspect-model.R

View check run for this annotation

Codecov / codecov/patch

R/inspect-model.R#L149-L153

Added lines #L149 - L153 were not covered by tests
} else {
Expand Down

0 comments on commit 5d96c70

Please sign in to comment.