View source: R/create_AOI_df.R
create_AOI_df | R Documentation |
Create a blank data frame for populating with AOIs
create_AOI_df(num_AOIs = 3, shape = "rect", AOI_data = NULL)
num_AOIs |
number of AOIs, setting the number of rows |
shape |
whether the AOI is rectangular ("rect") or circular ("circ") |
AOI_data |
a list of data for each AOI, ordered by x, y, width_radius, and height |
a dataframe in the standard format required for eyetools
# create an empty data frame with 3 rectangular shaped AOIs
create_AOI_df(3, shape = "rect")
# create an AOI dataframe with data
create_AOI_df(3, shape = "rect",
AOI_data = list(c(460,840,400,300), c(1460,840,400,300), c(960,270,300,500)))
# creating data for circular AOIs
create_AOI_df(3, shape = "circ",
AOI_data = list(c(460,840,400), c(1460,840,400), c(960,270,300)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.