Skip to content

Commit 318dba6

Browse files
fix dont run example to showcase new functionalities refresh docs
1 parent efc422f commit 318dba6

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* added citation and start up message
44
* added `major_x_labels` argument for custom x labels
55
* added `interval_linewidth` argument to control interval linewidth
6-
* added possibility to add different ref line(s) by parameter via
7-
`ref_value_by_panel` and `ref_value_by_panel_data` function arguments (not in the shiny, app)
86
* added and exported `expand_modelframe` function
97
* added the possibility to select the shapes manually via `interval_shape` and `bsv_shape`
108
* added capability for user to reverse color legend separately via `legend_color_reverse`
119
* added capability for user to specify text for legend titles via `interval_legend_title` and `shape_legend_title` as well as to control text size via `legend_title_size`
1210
* added capability for user to specify facet text color via `x_facet_text_col` and `y_facet_text_col`
11+
* added possibility to add different ref line(s)/area(s) by parameter via
12+
`ref_value_by_panel` and `ref_value_by_panel_data` function arguments (not in the shiny, app)
1313

1414
# coveffectsplot 1.0.3
1515
* fixed a bug when ref_value when not equal 1 affecting y axis limits

R/forest_plot.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ label_wrap <- function(width) {
258258
#' plotdata$paramname <- c(rep("1-OH",30),rep("BZD",30))
259259
#' plotdata$paramname2 <- c(rep("AUC",15),rep("CMAX",15),rep("AUC",15),rep("CMAX",15))
260260
#'forest_plot(plotdata,
261-
#' show_ref_area = FALSE,
261+
#' show_ref_area = TRUE,
262262
#' x_facet_text_size = 13,
263263
#' y_facet_text_size = 13,
264-
#' ref_legend_text = "Reference (vertical line))",
264+
#' ref_legend_text = "Reference (vertical line)",
265265
#' area_legend_text = "Reference (vertical line)",
266266
#' xlabel = "Fold Change Relative to Parameter",
267267
#' facet_formula = covname~paramname2,
@@ -278,18 +278,18 @@ label_wrap <- function(width) {
278278
#' legend_color_reverse = TRUE,
279279
#' interval_legend_title="Median (points)\n95% CI (horizontal lines)",
280280
#' table_position = "right", plot_title = "",
281-
#' ref_area_col = rgb( col2rgb("gray50")[1], col2rgb("gray50")[2],col2rgb("gray50")[3],
282-
#' max = 255, alpha = 0.1*255 ) ,
283-
#' interval_col = c("steelblue","red","steelblue","red"),
284-
#' strip_col = "lightblue",
281+
#' ref_area_col = "gray85" ,
282+
#' interval_col = c("#ee3124", "#fdbb2f"),
283+
#' strip_col = "#475c6b",
284+
#' y_facet_text_col = "white",x_facet_text_col = "white",
285285
#' major_x_labels = c("1/2", "0.8","1", "1.25", "2"),
286286
#' logxscale = TRUE, major_x_ticks =c(0.5,0.8,1,1.25,2),
287287
#' table_text_size = 5,
288288
#' plot_table_ratio = 1.5,
289289
#' ref_value_by_panel = TRUE,
290290
#' ref_value_by_panel_data = as.data.frame(
291291
#' plotdata %>%
292-
#' distinct(paramname2) %>%
292+
#' distinct(paramname2,covname) %>%
293293
#' mutate(xintercept=ifelse(paramname2=="CMAX",1,1.2))))
294294
#'
295295
#' # Example 3

man/forest_plot.Rd

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)