View source: R/ScriptFonctionsSourcesVpack.r
modif_coul | R Documentation |
Permet de modifier des couleurs
modif_coul(COULEUR, mods = 0.5, modv = 0.5, modh = 0.5, alpha = 1)
COULEUR |
une couleur ou liste de couleur, soit en nom de couleur R ("cadetblue"), soit en code hexadécimal |
mods |
coefficient modérateur de la saturation, sous 0.5 ça désature, au dessus, ça sature |
modv |
coefficient modérateur de la brillance, sous 0.5 ça fonce, au dessus, ça éclaircit |
modh |
coefficient modérateur de la teinte, ça tourne en rond.. |
alpha |
transparence, sous 1, ça devient transparent |
un code hexadécimal de couleur
#Sans modification de couleur :
hist(rnorm(30),col="cadetblue")
#En modifiant la saturation :
hist(rnorm(30),col=modif_coul("cadetblue",mods=0.1))
hist(rnorm(30),col=modif_coul("cadetblue",mods=0.9))
#En modifiant la clarté :
hist(rnorm(30),col=modif_coul("cadetblue",modv=0.1))
hist(rnorm(30),col=modif_coul("cadetblue",modv=0.9))
#En modifiant la transparence :
hist(rnorm(30),col=modif_coul("cadetblue",alpha=0.1))
hist(rnorm(30),col=modif_coul("cadetblue",alpha=0.9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.