plot_spot | R Documentation |
Plots a spot matrix.
plot_spot(object, ...)
## S4 method for signature 'matrix'
plot_spot(
object,
type = c("ring", "plain"),
color = NULL,
diag = TRUE,
upper = TRUE,
lower = TRUE,
freq = FALSE,
margin = 1,
axes = TRUE,
legend = TRUE,
...
)
## S4 method for signature 'data.frame'
plot_spot(
object,
type = c("ring", "plain"),
color = NULL,
diag = TRUE,
upper = TRUE,
lower = TRUE,
freq = FALSE,
margin = 1,
axes = TRUE,
legend = TRUE,
...
)
## S4 method for signature 'dist'
plot_spot(
object,
type = c("ring", "plain"),
color = NULL,
diag = FALSE,
upper = FALSE,
lower = !upper,
axes = TRUE,
legend = TRUE,
...
)
object |
A |
... |
Currently not used. |
type |
A |
color |
A vector of colors or a |
diag |
A |
upper |
A |
lower |
A |
freq |
A |
margin |
An |
axes |
A |
legend |
A |
The spot matrix can be considered as a variant of the Bertin diagram where the data are first transformed to relative frequencies.
plot_spot()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns object
).
Adapted from Dan Gopstein's original idea.
N. Frerebeau
Other plot methods:
matrigraph()
,
plot_bertin()
,
plot_diceleraas()
,
plot_ford()
,
plot_heatmap()
,
plot_rank()
,
seriograph()
## Data from Huntley 2004, 2008
data("pueblo")
## Plot spot diagram of count data
plot_spot(pueblo, type = "ring")
plot_spot(pueblo, type = "plain")
## Plot conditional proportions
plot_spot(pueblo, freq = TRUE, margin = 1)
plot_spot(pueblo, freq = TRUE, margin = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.