scripts: improve R script that plots actor profiles

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>