Description Usage Arguments Optional graphical parameters Author(s) See Also Examples
Plots wind speeds against directions in a polar plot.
1 2 |
mast |
Met mast object created by |
v.set |
Set used for wind speed values, specified as set number or set name. |
dir.set |
Set used for wind direction values, specified as set number or set name. |
subset |
Optional start and end time stamp for a data subset, as string vector |
... |
Optional graphical parameters, see below for details. |
The following graphical parameters can optionally be added to customize the plot:
cex
: Numeric value, giving the amount by which text on the plot should be scaled relative to the default (which is 1).
cex.axis
: Amount by which axis annotations should be scaled, as numeric value.
cex.lab
: Amount by which axis labels should be scaled, as numeric value.
cex.pts
: Amount by which the plot symbols should be scaled, as numeric value.
circles
: Manual definition of circles to be drawn, as numeric vector of the form c(inner circle, outer circle, interval between the circles).
col
: The colour of the symbols plotted.
col.axis
: Colour to be used for axis annotations – default is "gray45"
.
col.circle
: Colour to be used for circles – default is "gray45"
.
col.cross
: Colour to be used for axis lines – default is "gray45"
.
col.lab
: Colour to be used for axis labels – default is "black"
.
fg
: If TRUE
, sectors are plotted in foreground (on top of axis lines and circles) – default is FALSE
.
lty.circle
: Line type of circles – default is "dashed"
. See par
for available line types.
lty.cross
: Line type of axis lines – default is "solid"
. See par
for available line types.
lwd.circle
: Line width of circles, as numeric value – default is 0.7
.
lwd.cross
: Line width of axis lines, as numeric value – default is 0.7
.
pch
: Either an integer specifying a symbol or a single character to be used as symbol – default is "."
, which is drawn much faster than other symbols. See points
for possible values and their interpretation.
pos.axis
: Position of axis labels in degree, as numeric value – default is 60
.
Christian Graul
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## Not run:
# load and prepare data
data("winddata", package="bReeze")
set40 <- set(height=40, v.avg=winddata[,2], dir.avg=winddata[,14])
set30 <- set(height=30, v.avg=winddata[,6], dir.avg=winddata[,16])
set20 <- set(height=20, v.avg=winddata[,10])
ts <- timestamp(timestamp=winddata[,1])
neubuerg <- mast(timestamp=ts, set40, set30, set20)
neubuerg <- clean(mast=neubuerg)
# plot v vs. dir
polar.plot(mast=neubuerg)
polar.plot(mast=neubuerg, v.set=3, dir.set=2)
polar.plot(mast=neubuerg, v.set="set3", dir.set="set2") # same as above
# data subsets
polar.plot(mast=neubuerg,
subset=c("2009-12-01 00:00:00", "2009-12-31 23:50:00"))
polar.plot(mast=neubuerg,
subset=c("2010-01-01 00:00:00", NA)) # just 'start' time stamp
polar.plot(mast=neubuerg,
subset=c(NA, "2009-12-31 23:50:00")) # just 'end' time stamp
# customize plot
polar.plot(mast=neubuerg, cex.axis=1.2, cex.lab=1.5, cex.pts=0.8,
circles=c(10,20,5), col="red3", col.axis=gray(0.2), col.circle=gray(0.3),
col.cross=gray(0.3), col.lab=gray(0.2), fg=TRUE, lty.circle="dotted",
lty.cross="longdash", lwd.circle=1.2, lwd.cross=1.2, pch=1, pos.axis=135)
## End(Not run)
|
This is bReeze 0.4-0
Type changes("bReeze") to see changes/bug fixes, help(bReeze) for documentation
or citation("bReeze") for how to cite bReeze.
Attaching package: 'bReeze'
The following objects are masked from 'package:stats':
frequency, profile, ts
The following object is masked from 'package:utils':
timestamp
Pattern found: %d.%m.%Y %H:%M
Cleaning set 1...
2938 samples lower than 0.4 replaced by 'NA' in average wind speed
Cleaning set 2...
3361 samples lower than 0.4 replaced by 'NA' in average wind speed
Cleaning set 3...
2896 samples lower than 0.4 replaced by 'NA' in average wind speed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.