Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion R/mod_study_forms.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,20 @@ mod_study_forms_server <- function(
fig_data()[[yval]],
"No non-missing data available. Check table view or non-transformed data."
))
plot_cnt <- length(unique(fig_data()$item_name))
plot_height <- if (plot_cnt > 1) {
ceiling(0.5 * plot_cnt * 150) + 200
Comment thread
aclark02-arcus marked this conversation as resolved.
Outdated
} else {
500
Comment thread
aclark02-arcus marked this conversation as resolved.
Outdated
}
Comment thread
aclark02-arcus marked this conversation as resolved.
plotly_figure(
data = fig_data(),
fig = "timeseries_fig",
xval = "day",
id = "subject_id",
id_to_highlight = active_subject(),
point_size = "reviewed",
height = ceiling(0.5*length(unique(fig_data()$item_name))*125+175),
height = plot_height,
show_all_participants = isTRUE(input$show_all_participants),
show_all_hover_labels = input$show_all_hover_labels,
label = if (yval == "value_standardized") "label_standardized" else "text_label",
Expand Down
Loading