USEPA / CompTox-ToxCast-tcpl

US EPA's Toxicity Forecaster (ToxCast) Pipeline. More information on the ToxCast program available here: https://www.epa.gov/comptox-tools/toxicity-forecasting-toxcast
https://cran.r-project.org/package=tcpl
Other
29 stars 12 forks source link

Investigate/resolve warnings during plotting #50

Open brown-jason opened 1 year ago

brown-jason commented 1 year ago

When plotting many plots (entire aeid for example) there is generally multiple warnings due to missing data. Add checks into the tcplplot function so that the missing data is not attempted to be added. This will resolve the warnings.

tcplPlot(lvl=5, fld = "aeid",val = 2237, output = "pdf",verbose = FALSE)
There were 50 or more warnings (use warnings() to see the first 50)
> warnings()
Warning messages:
1: Removed 101 rows containing missing values (`geom_function()`).
2: Removed 101 rows containing missing values (`geom_function()`).
3: Removed 101 rows containing missing values (`geom_function()`).
4: Removed 101 rows containing missing values (`geom_function()`).
5: Removed 101 rows containing missing values (`geom_function()`).
6: Removed 101 rows containing missing values (`geom_function()`).
7: Removed 101 rows containing missing values (`geom_function()`).
8: Removed 101 rows containing missing values (`geom_function()`).
9: Removed 101 rows containing missing values (`geom_function()`).
10: Removed 34 rows containing missing values (`geom_vline()`).
madison-feshuk commented 1 month ago

Closed this PR https://github.com/USEPA/CompTox-ToxCast-tcpl/pull/53 (Outdated given plotting updates)