chronology {SherlockHolmes} | R Documentation |
chronology
Description
frequencies plotted in order of date (if the titles are given in order of date)
Usage
chronology(titles.vec, patterns, starts, freqs, chronDir, overlay = FALSE)
Arguments
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 |
overlay |
Boolean if TRUE overlay the chronolgy for multiple search patterns |
Value
returns no value, but has side effect generating graph
Examples
freqDir<-tempdir()
chronDir<-sprintf("%s/chronology",freqDir)
dir.create(chronDir)
dir.create(sprintf("%s/plots",chronDir))
dir.create(sprintf("%s/archive",chronDir))
print(chronDir)
chr<-chronology(titles.vec,c("Holmes","Watson"),starts,freqs,chronDir)
[Package SherlockHolmes version 1.0.1 Index]