plot.samediff | R Documentation |

This function plots the latent distributions of sensory intensity corresponding to the items or products tested in the discrimination test.

```
## S3 method for class 'samediff'
plot(x, main = TRUE, length = 1000,
limits, fig = TRUE, ...)
```

`x` |
The |

`main` |
include an automatically generated title on the plot?
Default is |

`length` |
the length of the vectors to be plotted. Longer vectors gives more smooth curves, but can take a little time. |

`limits` |
optional limits on the x-axis; vector of length two. |

`fig` |
logical: Should the function create the plot? Defaults to |

`...` |
additional arguments to |

If `fig = TRUE`

, the function will produce the plot. The function
invisibly returns a data.frame with elements

`z` |
values for the x-axis of lenght |

`base.dist` |
y-values for the base distribution of same-samples, ie. a standard normal distribution |

`delta.dist` |
y-values for the distribution of different-samples,
ie. a normal distribution centred at |

This facilitates later plotting and changing the appearance of the plot.

Rune Haubo B Christensen

```
## Make same-diff object:
sadi <- samediff(8, 5, 4, 9)
## Plot distributions of sensory intensity:
plot(sadi)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.