areaQuadrantTime: Area chart for percentage of quadrant time

Description Usage Arguments

View source: R/areaQuadrantTime.R

Description

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).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
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
)

Arguments

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


Thonnard/VisualMWM documentation built on Aug. 22, 2020, 4:41 p.m.