diff --git a/.Rbuildignore b/.Rbuildignore index 1ed837b655c74b7fbca27c426fe5a18b9f4c620b..e8159e28cec9403ffb26c7a4fab74f9f828e7545 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -8,3 +8,4 @@ #^tests$ ./.nfs* ^cran-comments\.md$ +./vignettes/*.md diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 0000000000000000000000000000000000000000..7aefb00df24f2835db4f97d44a0507a4ece09bb3 --- /dev/null +++ b/NEWS.md @@ -0,0 +1,6 @@ +### CSIndicators 0.0.2 +**Submission date to CRAN: XX-YY-2021** + +- New features: +- Fixes: + + Vignettes figures diff --git a/vignettes/EnergyIndicators.Rmd b/vignettes/EnergyIndicators.Rmd index 222ba3829e2d4df3c2ade0be674b7414fab7bd4e..caf474e68d2ba86a04b41f87d9efa300d216cf6a 100644 --- a/vignettes/EnergyIndicators.Rmd +++ b/vignettes/EnergyIndicators.Rmd @@ -30,7 +30,7 @@ Although wind turbines cannot extract all of the kinetic energy in the wind, and As an example, we simulate a time series of 1000 wind speed values from a Weibull distribution with scale factor of 6 and a shape factor of 2, which represent a sample of wind speed values obtained at a single location. The Weibull distribution is often assumed to fit observed wind speed values to a probability distribution function. Then, each instantaneous wind speed value is converted to its equivalent WPD. The `mean` and `sd` of the WPD can be employed to summarize the wind resource in that location. Otherwise, we can plot the histograms to see the full distribution of values: -```{r} +```{r, fig.width=7} library(CSIndicators) set.seed(1) oldpar <- par(no.readonly = TRUE) @@ -42,7 +42,6 @@ par(mfrow=c(1, 2)) hist(wind, breaks = seq(0, 20)) hist(WPD, breaks = seq(0, 4000, 200)) ``` - As you can see the histogram of the WPD is highly skewed, even if the wind speed was only a little skewed! @@ -62,7 +61,7 @@ Notice that power curves are intended to be used with 10-minutal steady wind spe Following on the previous example, we will compute now the CF that would be obtained from our sample of 1000 wind speed values when using a turbine of class IEC I, and compare it to the CF values for a class III: -```{r} +```{r, fig.width=7} WCFI <- WindCapacityFactor(wind, IEC_class = "I") WCFIII <- WindCapacityFactor(wind, IEC_class = "III") par(mfrow=c(1, 3)) @@ -72,7 +71,6 @@ hist(WCFIII, breaks = seq(0, 1, 0.05), ylim = c(0, 500)) par(oldpar) ``` - From the CF histograms we can see that, for this particular wind speed distribution, the IEC I turbine (designed for high winds) producess less energy than the IEC III turbine, which is more suitable for this range of wind speed values.