## S3 method for class 'PSTf,stslist':
pqplot(object, data, cdata, L, stcol, plotseq=FALSE,
ptype="b", cex.plot=1, space=0,
measure="prob", pqmax, seqscale, ...)
'stslist'
as created by TraMineR seqdef
function, either subsetted with the index of the sequence to predict or containing one sequence.'b'
for barplot or 'l'
for line.'prob'
or 'logloss'
.$plotseq=TRUE
, width of the bar representing the sequence as a proportion of the y axis range.pqplot()
function displays either the predicted probabilities or the log-loss for each position of a single sequence as a series of barplots.data(s1)
s1 <- seqdef(s1)
S1 <- pstree(s1, L=3)
z <- seqdef("a-b-a-a-b")
pqplot(S1, z)
pqplot(S1, z, measure="logloss", plotseq=TRUE)
Run the code above in your browser using DataLab