View source: R/areaQuadrantTime.R
areaQuadrantTime | R Documentation |
areaQuadrantTime creates a geom_area plot showing the percentage of time spent per quadrant for a specific trial of one animal, visualized in a stacked area plot. This function returns the graph as a ggplot object and saves the image (default = jpeg).
areaQuadrantTime(
data,
id,
day,
trial,
centerx,
centery,
radius = 75,
platformx,
platformy,
platformradius = 7.5,
device = "jpeg",
width = 18,
height = 12,
units = "cm",
dpi = 300,
viridis_color_palette = "D",
theme_settings = NULL,
title = NA
)
data |
Data set containing at least following columns: "Time", "x", "y", "Animal", "Day", "Trial". "x" and "y" represent the coordinates (position) of the animal at a certain timepoint ("Time") during the trial. |
id |
ID of the animal |
day |
day number |
trial |
trial number |
centerx |
x coordinate of the center of the morris water maze (cm) |
centery |
y coordinate of the center of the morris water maze (cl) |
radius |
radius of the morris water maze (cm), default = 75 |
platformx |
x coordinate of the center of the platform (cm) |
platformy |
y coordinate of the center of the platform (cm) |
platformradius |
radius of the platform (cm), default = 7.5 |
device |
Device for the graph. Options: "png", "eps", "ps", "tex", "pdf", "jpeg", "tiff", "png", "bmp", "svg", "wmf" |
width |
Width of the graph, default = 18 |
height |
Height of the graph, default = 12 |
units |
Units. Options: "in", "cm", "mm". Default = "cm". |
dpi |
Resolution. Default = 300 |
viridis_color_palette |
Viridus color palette. Options: "A", "B", "C", "D", "E". Default = "D". |
theme_settings |
Optional parameter that passes list of arguments to ggplot2's theme() function. |
title |
Add title to GIF. Default = NA |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.