Commit a9a988b8 authored by majpark21's avatar majpark21

Moved missing package message, larger lines for avg plot

parent 7243c218
...@@ -25,13 +25,15 @@ required_packages = c( ...@@ -25,13 +25,15 @@ required_packages = c(
) )
missing_packages = missing_packages =
required_packages[!(required_packages %in% installed.packages()[, "Package"])] required_packages[!(required_packages %in% installed.packages()[, "Package"])]
cat(paste(
if (length(missing_packages)) {
cat(paste(
"Missing packages:", "Missing packages:",
paste(missing_packages, collapse = ";"), paste(missing_packages, collapse = ";"),
"\nAttempting to install them." "\nAttempting to install them."
)) ))
if (length(missing_packages))
install.packages(missing_packages) install.packages(missing_packages)
}
# Load modules # Load modules
source('modules/auxfunc.R') source('modules/auxfunc.R')
......
...@@ -1152,7 +1152,7 @@ LOCplotTrajRibbon = function(dt.arg, ...@@ -1152,7 +1152,7 @@ LOCplotTrajRibbon = function(dt.arg,
alpha = ribbon.alpha.arg alpha = ribbon.alpha.arg
) )
p.tmp = p.tmp + geom_line(aes_string(y = y.arg, colour = group.arg)) p.tmp = p.tmp + geom_line(aes_string(y = y.arg, colour = group.arg), size = 1.25)
# plot stimulation bars underneath time series # plot stimulation bars underneath time series
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment