From c21ef1a57dc18a50474c48a302258dc1e5480007 Mon Sep 17 00:00:00 2001 From: Blake Seers Date: Tue, 8 Jan 2019 14:39:38 +1300 Subject: [PATCH] Fixes issue #21. --- R/cfData-plotMethods.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/cfData-plotMethods.R b/R/cfData-plotMethods.R index ac59fc4..449ede7 100644 --- a/R/cfData-plotMethods.R +++ b/R/cfData-plotMethods.R @@ -100,7 +100,7 @@ windrose = function(speed, direction, facet, n_directions = 12, legend_title = "Wind Speed", calm_wind = 0, variable_wind = 990, n_col = 1, ...){ - if (missingArg(direction)) + if (missingArg(speed)) stop("speed can't be missing") if (missingArg(direction)) @@ -121,7 +121,7 @@ windrose = function(speed, direction, facet, n_directions = 12, } if (!is.numeric(speed)) - stop("wind speed need to be numeric") + stop("wind speeds need to be numeric") if (!is.numeric(direction)) stop("wind directions need to be numeric")