Description Usage Arguments Examples
Generates graphic representations of an mldr
object
1 2 3 |
x |
The mldr object whose features are to be drawn |
type |
Indicates the type(s) of plot to be produced. Possible types are:
|
labelCount |
Samples the labels in the dataset to show information of only |
labelIndices |
Establishes the labels to be shown in the plot |
title |
A title to be shown above the plot. Defaults to the name of the dataset passed as first argument |
ask |
Specifies whether to pause the generation of plots after each one |
... |
Additional parameters to be given to barplot, hist, etc. |
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 | library(mldr)
## Not run:
# Label concurrence plot
plot(genbase, type = "LC") # Plots all labels
plot(genbase) # Same as above
plot(genbase, title = "genbase dataset", color.function = heat.colors) # Changes the title and color
plot(genbase, labelCount = 10) # Randomly selects 10 labels to plot
plot(genbase, labelIndices = genbase$labels$index[1:10]) # Plots info of first 10 labels
# Label bar plot
plot(emotions, type = "LB", col = terrain.colors(emotions$measures$num.labels))
# Label histogram plot
plot(emotions, type = "LH")
# Cardinality histogram plot
plot(emotions, type = "CH")
# Attributes by type
plot(emotions, type = "AT", cex = 0.85)
# Labelset histogram
plot(emotions, type = "LSH")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.