plot.Map | R Documentation |
Plotting function for objects of the outlier_map
class. Produces a
heatmap-style image using ggplot2 syntax, for objects
produced by calcOutlierMap()
.
## S3 method for class 'Map'
plot(
x,
color.scheme = NULL,
legend.ticks = 7,
gridlines = NULL,
gridlinecol = "red",
gridlinelwd = 0.5,
gridlinelty = 2,
main = NULL,
y.lab = NULL,
x.lab = NULL,
flags = NULL,
legend.width = 1,
legend.height = 2,
filename = NULL,
plot.width = 14,
plot.height = 8,
plot.scale = 1,
...
)
x |
An object of class: |
color.scheme |
Which color scheme to use. Typical choices include:
|
legend.ticks |
How many ticks to place on the color legend. |
gridlines |
Numeric vector or logical. Indicates where to draw the horizontal
grid lines that can be used to separate samples (rows). This
should be a vector of the cumulative sum of the horizontal lines to be
drawn, typically something like |
gridlinecol |
Color of the gridlines. |
gridlinelwd |
Width of the gridlines. |
gridlinelty |
Line type of the gridlines. |
main |
Character. Main title for the plot.
See |
y.lab |
Character. Optional string for the y-axis. Otherwise one is automatically generated (default). |
x.lab |
Character. Optional string for the x-axis. Otherwise one is automatically generated (default). |
flags |
Numeric in |
legend.width |
Width for the color legend. |
legend.height |
Height for the color legend. |
filename |
Optional. If provided, the plot will be written to a file.
The file name must also include the desired file type extension;
this will be used to determine the file type,
e.g. a file named |
plot.width |
If |
plot.height |
If |
plot.scale |
If |
... |
Arguments required by the |
Plot an image of the passed matrix.
Stu Field, Amanda Hiser
ggplot2::ggplot()
, ggplot2::geom_raster()
Other Calc Map:
calcOutlierMap()
,
getOutlierIds()
example_data |>
dplyr::filter(SampleType == "Sample") |>
head(10) |>
calcOutlierMap() |>
plot(flags = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.