ggplot2, ggplot(), is a highly functional plotting system
# Add the following to the script to prevent the automatic Rplots.pdf file from being generated
if(!interactive()) pdf(NULL)
## Use format() to force the output format
# example number
x = 800000
# output number with comma as a thousands separator
# format scientific = FALSE
format(x, big.mark = ",", scientific = FALSE)
800,000