Learn R Programming

WebAnalytics (version 0.9.14)

plotTransactionRateImpactOnDynamicContentResponse: Generate a plot of mean transaction rate by interval against dynamic content response

Description

Calls plotByRate internally to generate a rate plot.

Usage

plotTransactionRateImpactOnDynamicContentResponse(b)

Value

Returns an R base graphics plot. This function is intended to be wrapped in a call to plotSave

Arguments

b

a transaction data frame created by logFileRead or logFileListRead

Author

Greg Hunt <greg@firmansyah.com>

See Also

plotByRate savePlot logFileRead logFileListRead

Examples

Run this code
# \dontshow{
datd = paste0(tempdir(),"/minconfigtemp")
unlink(datd)
dir.create(paste0(tempdir(),"/minconfigtemp"))
logfile = paste0(datd,"/log.log")
fileConn = gzfile(system.file("extdata", "compressed.log", package = "WebAnalytics"))
writeLines(readLines(fileConn,n=100),con=logfile)
close(fileConn)
# set the files directory name suitable for an R example
configVariableSet("config.workdir", tempdir())
setDTthreads(threads = 1)
# }
logFileName = logFileNamesGetLast(dataDirectory=datd, 
  directoryNames=c(".", "."), 
  fileNamePattern="*[.]log")[[1]]

cols = logFileFieldsGetIIS(logFileName)

logdf = logFileRead(logFileName, columnList=cols, 
            logTimeZone = "", timeFormat = "")

plotTransactionRateImpactOnDynamicContentResponse(logdf)

Run the code above in your browser using DataLab