coChronology | R Documentation |
graphical indicator of search patterns within stories
coChronology(titles.vec, patterns, starts, freqs, chronDir)
titles.vec |
character vector containing the titles of the stories |
patterns |
vector of character string query patterns |
starts |
integer vector of starting positions |
freqs |
return value of frequency() |
chronDir |
character string full path name for output directory |
returns an integer matrix whose rows are search patterns and columns are stories, value of 1 indicates the presence of the corresponding search pattern in the corresponding story
freqDir<-tempdir()
chronDir<-sprintf("%s/chronology",freqDir)
dir.create(chronDir)
dir.create(sprintf("%s/plots",chronDir))
dir.create(sprintf("%s/archive",chronDir))
print(chronDir)
coch<-coChronology(titles.vec,c("Holmes","Watson"),starts,freqs,chronDir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.