Skip to content

Commit

Permalink
cran submission fix and new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathancallahan committed Apr 3, 2019
1 parent 80fa685 commit 106bbc8
Show file tree
Hide file tree
Showing 176 changed files with 226 additions and 212 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Package
Package: PWFSLSmoke
Version: 1.2.1
Version: 1.2.2
Title: Utilities for Working with Air Quality Monitoring Data
Authors@R: c(
person("Jonathan", "Callahan", email="[email protected]", role=c("aut","cre")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# PWFSLSmoke 1.2.2

* CRAN submission fix

# PWFSLSmoke 1.2.1

* addedd an introductory vignette
Expand Down
2 changes: 1 addition & 1 deletion R/monitor_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ monitor_map <- function(

stateCodes <- unique(ws_monitor$meta$stateCode)

if ( is.null(stateCodes) || stateCodes == "" ) {
if ( is.null(stateCodes) || all(stateCodes == "") ) {

# No stateCodes found. Use xlim and ylim.
xlim <- range(ws_monitor$meta$longitude)
Expand Down
52 changes: 27 additions & 25 deletions R/monitor_performanceMap.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' @export
#' @import maps mapproj
#'
#' @title Create Map of Monitor Prediction Performance
#' @title Create map of monitor prediction performance
#'
#' @param predicted ws_monitor object with predicted values
#' @param observed ws_monitor object with observed values
Expand Down Expand Up @@ -54,29 +54,31 @@
#' title('Heidke Skill of monitors predicting another monitor.')
#' }

monitor_performanceMap <- function(predicted,
observed,
threshold = AQI$breaks_24[3],
cex = par("cex"),
sizeBy = NULL,
colorBy = "heidikeSkill",
breaks = c(-Inf, .5, .6, .7, .8, Inf),
paletteFunc = grDevices::colorRampPalette(
RColorBrewer::brewer.pal(
length(breaks), "Purples"
)[-1]
),
showLegend = TRUE,
legendPos = "topright",
stateCol = "grey60",
stateLwd = 2,
countyCol = "grey70",
countyLwd = 1,
add = FALSE,
...) {


# below copies from monitor_performanceMap --------------------------------
monitor_performanceMap <- function(
predicted,
observed,
threshold = AQI$breaks_24[3],
cex = par("cex"),
sizeBy = NULL,
colorBy = "heidikeSkill",
breaks = c(-Inf, .5, .6, .7, .8, Inf),
paletteFunc = grDevices::colorRampPalette(
RColorBrewer::brewer.pal(
length(breaks), "Purples"
)[-1]
),
showLegend = TRUE,
legendPos = "topright",
stateCol = "grey60",
stateLwd = 2,
countyCol = "grey70",
countyLwd = 1,
add = FALSE,
...
) {


# below copies from monitor_performanceMap -----------------------------------

# Get the performance dataframe
performanceDF <- monitor_performance(predicted, observed, threshold, threshold)
Expand All @@ -86,7 +88,7 @@ monitor_performanceMap <- function(predicted,

stateCodes <- unique(predicted$meta$stateCode)

if ( is.null(stateCodes) || stateCodes == "" ) {
if ( is.null(stateCodes) || all(stateCodes == "") ) {

# No stateCodes found. Use xlim and ylim.
xlim <- range(predicted$meta$longitude)
Expand Down
2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/Data_Model.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/Maps_and_Timeseries_Plots.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/NowCast.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions docs/articles/PWFSLSmoke.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/articles/articles/esriMap.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/articles/articles/esriMap_files/figure-html/makeMap-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/AIRSIS.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/AQI.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/AQI_en.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/AQI_es.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CONUS.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/Carmel_Valley.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/Northwest_Megafires.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/PWFSLSmoke-deprecated.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/US_52.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/WRCC.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addAQILegend.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addAQILines.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addAQIStackedBar.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addBullseye.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addClustering.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addEsriAddress.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addGoogleAddress.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addGoogleElevation.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addIcon.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addMarker.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addMazamaMetadata.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/addPolygon.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 106bbc8

Please sign in to comment.