plot.web: plot.web() Heatmap plotting on website screenshot

Description Usage Arguments Value Examples

View source: R/web-plot.R

Description

Function is one of the core functionalitys of the package. You can plot either the mouse motion or the clicks on a website screenshot. See the Argument description for customization details.

Usage

1
2
3
## S3 method for class 'web'
plot(data, url, type = "motion", subject = c(1, 2),
  alpha = 0.1, size = 0.5, color = "purple", ...)

Arguments

data

a list of class web

url

a character,pPath to the website you want to plot data points at. It requires that a screenshot is taken with take_screenshots of url.

type

a character, "motion" or "click". Selects the type of data to plot. "motion" Selects only mouse movements, "click" only mouse clicks.

subject

a integer vector including the subjects which shall be plotted

alpha

a numeric, From zero to 1; to set the transparency of data points.

size

a numeric, For type motion size=0.5 is recommended and for type click size=2.5 is a good setting to start. It depends very much on the amount of data points.

color

a color, Color of data points. Use a color which is most different than the website. See the R's color specifications for more details and possible values.

Value

plot as png at folder "yourworkingdirectory/plots/plot.png"

Examples

1
plot(data, url="http://youwebsitetoplot.com/", type = "motion", subject = c(1, 2), alpha = 0.1, size = 0.5, color ="purple")

Fiddleman/NeuroIS documentation built on Nov. 1, 2017, 7:03 a.m.