Skip to content

plot not working with simplified example #116

@ethanwhite

Description

@ethanwhite

Simplifying the example in the README to get a reasonable run time results in an error when calling plot

library(LDATS)
data(rodents)
dtt <- rodents$document_term_table
dct <- rodents$document_covariate_table
weights <- document_weights(dtt)
TS_controls <- TS_controls_list(timename = "newmoon")
controls <- LDA_TS_controls_list(TS_control = TS_controls)
r_LDATS <- LDA_TS(dtt, dct, topics = 2:5, nseeds = 2,
                  formulas = c(~1), nchangepoints = 1,
                  weights = weights, control = controls)

The plot:

> plot(r_LDATS)
Error in `[.data.frame`(x$"Selected TS model"$data, , tname) : 
  undefined columns selected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions