Skip to content

Commit

Permalink
Merge pull request #183 from NEST/prf/182_plot_height_error_message_n…
Browse files Browse the repository at this point in the history
…ew_slider

more helpful message to end user
  • Loading branch information
Zhao, Junlue {MDBE~SOUTH SAN FRANCISCO} authored and GitHub Enterprise committed May 4, 2021
2 parents a9dff81 + 86c3a80 commit e9032eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,12 @@ g_lineplot <- function(label = "Line Plot",
tabletotal <- lines * minline * ifelse(display_center_tbl, 2, 1)
plotsize <- plot_height - tabletotal
if (plotsize <= 250) {
stop("Due to number of line splitting levels default plot height is not sufficient to display. Please adjust the
plot height using the Plot Aesthetic Settings.")
stop("Due to number of line splitting levels the current plot height is not sufficient to display plot.
If applicable, please try a combination of:
* increasing the plot height using the Plot Aesthetic Settings,
* increasing the relative height of plot to table(s),
* increasing the initial maximum plot_height argument during creation of this app,
* and / or consider removing the mean / median table.")
}
if (display_center_tbl) {
unfiltered_data$center <- if (median) {
Expand Down

0 comments on commit e9032eb

Please sign in to comment.