Skip to content

Commit

Permalink
pre-release 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkang committed Nov 14, 2023
1 parent ae7d4d3 commit cea32e7
Show file tree
Hide file tree
Showing 20 changed files with 650 additions and 15 deletions.
13 changes: 9 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Package
Package: BayesianReasoning
Title: Plot Positive and Negative Predictive Values for Medical Tests
Version: 0.4.2
Date: 2022-09-06
Date: 2023-11-13
Authors@R:
person("Gorka", "Navarrete", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-7678-8656"))
Expand All @@ -22,10 +22,14 @@ Depends:
Imports:
cli,
dplyr,
ggforce,
ggforce (>= 0.4.0),
ggplot2,
ggtext,
gt,
magrittr,
png,
reshape2,
scales,
stats,
tibble,
tidyr
Expand All @@ -37,10 +41,11 @@ Suggests:
purrr,
rmarkdown,
testthat (>= 3.0.0),
vdiffr
vdiffr,
webshot2
VignetteBuilder:
knitr
Encoding: UTF-8
LazyData: FALSE
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
Config/testthat/edition: 3
14 changes: 14 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export("%>%")
export(PPV_diagnostic_vs_screening)
export(PPV_heatmap)
export(min_possible_prevalence)
export(plot_cutoff)
export(remove_layers_cutoff_plot)
importFrom(cli,cli_alert_info)
importFrom(dplyr,filter)
importFrom(dplyr,mutate)
Expand All @@ -15,6 +17,7 @@ importFrom(ggplot2,element_text)
importFrom(ggplot2,geom_line)
importFrom(ggplot2,geom_tile)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,ggplot_build)
importFrom(ggplot2,ggsave)
importFrom(ggplot2,labs)
importFrom(ggplot2,layer_scales)
Expand All @@ -25,8 +28,19 @@ importFrom(ggplot2,scale_x_continuous)
importFrom(ggplot2,scale_y_continuous)
importFrom(ggplot2,theme)
importFrom(ggplot2,theme_minimal)
importFrom(ggtext,element_markdown)
importFrom(gt,cell_text)
importFrom(gt,cells_column_labels)
importFrom(gt,cols_align)
importFrom(gt,cols_label)
importFrom(gt,fmt_markdown)
importFrom(gt,gt)
importFrom(gt,tab_style)
importFrom(magrittr,"%>%")
importFrom(png,readPNG)
importFrom(reshape2,melt)
importFrom(scales,comma)
importFrom(stats,rnorm)
importFrom(stats,var)
importFrom(tibble,as_tibble)
importFrom(tidyr,gather)
16 changes: 16 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# BayesianReasoning 0.4.2

Major updates

* New plot_cutoff()
+ Shows healthy and sick distributions and shows FP, FN, TP and TN depending on a cutoff point
* New remove_layers_cutoff_plot() functions
+ Get's rid of layers of a cutoff_plot: FP, FN, TP or TN

Minor updates

* Fix for CRAN change in docType
* Use linewidth instead of size
* Faster implementation of a step in min_possible_prevalence


# BayesianReasoning 0.4.1

Minor updates
Expand Down
3 changes: 2 additions & 1 deletion R/globals.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://community.rstudio.com/t/how-to-solve-no-visible-binding-for-global-variable-note/28887
# https://www.r-bloggers.com/2019/08/no-visible-binding-for-global-variable/
utils::globalVariables(c("prevalence_1", "prevalence_2", "prevalence_pct", "FP", "NPV", "PPV", "Prevalence", "FN", "value", "prevalence", "sensitivity", "specificity"))
utils::globalVariables(c("prevalence_1", "prevalence_2", "prevalence_pct", "FP", "NPV", "PPV", "Prevalence", "FN", "value", "prevalence", "sensitivity", "specificity",
"N", "classification", "fill_str", "test_result", "type"))
Loading

0 comments on commit cea32e7

Please sign in to comment.