Skip to content

Commit

Permalink
Merge pull request #4 from KWB-R/dev
Browse files Browse the repository at this point in the history
Rename "Tutorial" to "Case Studies"
  • Loading branch information
hsonne authored Sep 8, 2024
2 parents 95f6101 + 6287285 commit 565dc2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
25 changes: 10 additions & 15 deletions R/plot_heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,14 @@ plot_heatmap <- function(bear1d_list)
## Create rectangle to plot parameter values on the heatmap plot
###############################################################

# rect_data <- data.frame( ### Surany Parameters
# xmin = 1, xmax = 4,
# ymin = 120, ymax = 600
# )
### Surany Parameters
# rect_data <- data.frame(xmin = 1, xmax = 4, ymin = 120, ymax = 600)

# rect_data <- data.frame( ### Surany Parameters
# xmin = 1, xmax = 1.9,
# ymin = 500, ymax = 2000
# )
### Surany Parameters
# rect_data <- data.frame(xmin = 1, xmax = 1.9, ymin = 500, ymax = 2000)

rect_data <- data.frame( ### Vienna / Tahi (10 PFAS) Parameters
xmin = 1, xmax = 2.9,
ymin = 500, ymax = 2000
)
### Vienna / Tahi (10 PFAS) Parameters
rect_data <- data.frame(xmin = 1, xmax = 2.9, ymin = 500, ymax = 2000)

################################################################

Expand All @@ -37,11 +31,12 @@ plot_heatmap <- function(bear1d_list)
# Create a heatmap using ggplot2
heatmap_plot <- data %>%
ggplot2::ggplot(ggplot2::aes(
y = .data$hl,
x = .data$log_koc,
y = .data$hl
)) +
ggplot2::geom_tile(ggplot2::aes(
fill = .data$Cx
)) +
ggplot2::geom_tile() +
ggplot2::geom_rect(
data = rect_data,
ggplot2::aes(
Expand Down Expand Up @@ -103,7 +98,7 @@ plot_heatmap <- function(bear1d_list)
) +
ggplot2::theme_bw() +
ggplot2::theme(
axis.text.x = text_element, # Adjust the size as needed
axis.text.x = text_element,
axis.text.y = text_element,
axis.title.x = text_element,
axis.title.y = text_element
Expand Down
6 changes: 2 additions & 4 deletions vignettes/Tutorial.Rmd → vignettes/case-studies.Rmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
editor_options:
chunk_output_type: console
title: "Tutorial"
title: "Case Studies"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Tutorial}
%\VignetteIndexEntry{Case Studies}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
Expand All @@ -17,8 +17,6 @@ knitr::opts_chunk$set(
)
```

## Case Studies

### Budapest Tahi

```{r Budapest_Tahi}
Expand Down

0 comments on commit 565dc2d

Please sign in to comment.