citHeader("To cite colorspace in publications use")

## R >= 2.8.0 passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("colorspace")
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s", meta$Version)

citEntry(entry = "Manual",
         title = "{colorspace}: Color Space Manipulation",
         author = personList(as.person("Ross Ihaka"), 
	                     as.person("Paul Murrell"),
                             as.person("Kurt Hornik"),
			     as.person("Jason C. Fisher"),
			     as.person("Achim Zeileis")),
         year = year,
         note = note,
         url = "https://CRAN.R-project.org/package=colorspace",

         textVersion =
         paste("Ross Ihaka, Paul Murrell, Kurt Hornik, Jason C. Fisher, Achim Zeileis",
   	       sprintf("(%s).", year),	 
               "colorspace: Color Space Manipulation.",
	       paste(note, ".", sep = ""),
               "URL https://CRAN.R-project.org/package=colorspace")
)

citEntry(entry = "Article",
         title = "Escaping {RGB}land: Selecting Colors for Statistical Graphics",
         author = personList(as.person("Achim Zeileis"), 
	                     as.person("Kurt Hornik"),
                             as.person("Paul Murrell")),
         journal      = "Computational Statistics \\& Data Analysis",
         year         = "2009",
	 volume       = "53",
	 number       = "9",
	 pages        = "3259--3270",
	 doi          = "10.1016/j.csda.2008.11.033",
         
         textVersion = 
         paste("Achim Zeileis, Kurt Hornik, Paul Murrell (2009).", 
               "Escaping RGBland: Selecting Colors for Statistical Graphics.",
	       "Computational Statistics & Data Analysis, 53(9), 3259-3270.",
	       "doi:10.1016/j.csda.2008.11.033"),
	 header = "If you use HCL-based color palettes, please cite:"
)

citEntry(entry = "Article",
         title = "Somewhere over the Rainbow: How to Make Effective Use of Colors in Meteorological Visualizations",
         author = personList(as.person("Reto Stauffer"), 
	                     as.person("Georg J. Mayr"),
	                     as.person("Markus Dabernig"),
                             as.person("Achim Zeileis")),
         journal      = "Bulletin of the American Meteorological Society",
         year         = "2009",
	 volume       = "96",
	 number       = "2",
	 pages        = "203--216",
	 doi          = "10.1175/BAMS-D-13-00155.1",
         
         textVersion = 
         paste("Reto Stauffer, Georg J. Mayr, Markus Dabernig, Achim Zeileis (2015).", 
               "Somewhere over the Rainbow: How to Make Effective Use of Colors in Meteorological Visualizations.",
	       "Bulletin of the American Meteorological Society, 96(2), 203-216.",
	       "doi:10.1175/BAMS-D-13-00155.1"),
	 header = "If you use HCL-based color palettes in meteorological visualizations, please cite:"
)
