ch.plot.learning | R Documentation |
This function plots the fit of a non-linear, decellerating function to the specifed data.
ch.plot.learning(
x,
y,
fit = NULL,
plotTitle = NA,
filename = NULL,
cex1 = 1,
yLabel = NA,
xLabel = "Trial Number",
ylimMin = 0,
ylimMax = 0,
...
)
x |
a vector containing the x variable. |
y |
a vector containing the y variable. |
fit |
a vector containing the variable with the best fit to the datapoints. If fit==NULL, then no function will be fit. If length(fit) == 2, then abline will be fit. if length(fit) == length(x), fit will be the best predicted datapoints for each x. |
plotTitle |
a string with the title of the plot. |
filename |
a string with the filename of the pdf of the file to be saved. DEFAULT = NULL; no file saved. |
cex1 |
a numeric value for cex: the relative size of the text in the graph. cex1 > 1 is bigger; cex1 < 1 is smaller. DEFAULT=1. |
yLabel |
a string with the title of y-axis. DEFAULT=NA. |
xLabel |
a string with the title of x-axis. DEFAULT="Trial Number". |
ylimMin |
a number denoting the minimum of the y-axis. DEFAULT=0. |
ylimMax |
a number denoting the maximum of the y-axis. DEFAULT=0. If ylimMin == ylimMax, the function determines a pretty y-axis for you. |
nothing.
ch.plot.learning (trial, RT, fit, "myplot.pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.