plot.seqdiff {TraMineR} | R Documentation |

## Plotting a seqdiff object.

### Description

Plot method for the sliding values returned by `seqdiff`

. Plots a statistic (the Pseudo R2 by default) along the position axis.

### Usage

```
## S3 method for class 'seqdiff'
plot(x, stat = "Pseudo R2", type = "l", ylab = stat,
xlab = "", legend.pos = "top", ylim = NULL, xaxis = TRUE, col = NULL,
xtstep = NULL, tick.last = NULL, legendposition, xaxt, ...)
```

### Arguments

`x` |
an object produced by |

`stat` |
character. Name of the statistic to be plotted. Can be any of the statistics returned by |

`type` |
the line |

`ylab` |
character: y-axis label. |

`xlab` |
character: x-axis label. |

`legend.pos` |
character: position of the line legend, see |

`ylim` |
numeric: if not |

`xaxis` |
logical: if |

`col` |
list of colors to use for each line. |

`xtstep` |
integer: optional step between tick-marks and labels on the x-axis. If unspecified, the |

`tick.last` |
Logical. Should a tick mark be enforced at the last position on the x-axis? If unspecified, the |

`legendposition` |
Deprecated. Use |

`xaxt` |
Deprecated. Use |

`...` |
Additional parameters passed to |

### Details

The function plots the sliding values of the requested statistic.

You can plot the evolution of two statistics by providing for instance `stat=c("Pseudo R2", "Levene")`

.

Use `stat="discrepancy"`

to plot the within-discrepancies.

For `"discrepancy"`

, a separate line is drawn for the whole set of sequences and for each group. Those two values cannot be paired with another statistic.

### Author(s)

Matthias Studer (with Gilbert Ritschard for the help page)

### See Also

*TraMineR*version 2.2-10 Index]