plot R scripts and images