Run and plot R statistics code within Angular