geom_smith | R Documentation |
geom_smith()
displays a smith chart based on the frequency and s-parameters.
geom_smith(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
...,
lineend = "round",
linejoin = "round",
linemitre = 10,
arrow = NULL,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this
layer, either as a |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
... |
Other arguments passed on to |
lineend |
Line end style (round, butt, square). |
linejoin |
Line join style (round, mitre, bevel). |
linemitre |
Line mitre limit (number greater than 1). |
arrow |
Arrow specification, as created by |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom_smith()
understands the following aesthetics (required aesthetics are in bold):
freq
smag
sang
alpha
colour
group
linetype
linewidth
Learn more about setting these aesthetics in vignette("ggplot2-specs")
.
if(require(ggplot2)) {
ggplot(dipole,
aes(freq = frequency,
smag = mag,
sang = ang * pi / 180,
color = frequency)) +
geom_smith()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.