


You can also use other color scales, such as ones taken from the RColorBrewer package. Default value is c(0.5, "solid", "#E5E5E5").įor more details follow this link : ggplot2.customize.Ĭhange histogram plot color according to the groupĬolors can be specified as a hexadecimal RGB triplet, such as "#FFCC00" or by names (e.g : "red" ). Default value is FALSE.Ī vector of length 3 indicating respectively the size, the line type and the color of axis lines. Rotation angle of x and y axis tick labels.

Default value are xTickLabelFont=c(12, "bold", "black"), yTickLabelFont=c(12, "bold", "black"). Default values are TRUE.Ī vector of length 3 indicating respectively the size, the style and the color of x and y axis tick label fonts. If TRUE, x and y axis tick mark labels will be shown. Default values are xtitleFont=c(14,"bold", "black"), ytitleFont=c(14,"bold", "black").
#Histogram maker with median code#
Color can be specified as an hexadecimal code (e.g: “#FFCC00”) or by the name (e.g : “red”, “green”). Possible values for the style:“plain”, “italic”, “bold”, “alic”. Default values are NULL.Ī vector of length 3 indicating respectively the size, the style and the color of x and y axis titles. Set the value to FALSE to hide axis labels. If TRUE, x and y axis titles will be shown. Default value is: mainTitleFont=c(14, "bold", "black"). The arguments that can be used to customize titles and x and y axis are listed below : ParametersĪ vector of length 3 indicating respectively the size, the style (“italic”, “bold”, “alic”) and the color of x and y axis titles. # Default value of position is "identity" This is shown in the following histograms. Possible values for the argument position is “identity”, “stack”, “dodge”. You can change the position adjustment to use for overlapping points on the layer. # alpha is the transparency of the overlaid colorĪddMeanLine=TRUE, meanLineColor="white", meanLineSize=1.5) # Histogram plots with semi-transparent fill. Ggplot2.histogram(data=weight, xName='weight', # Color the histogram plot by the groupName "sex" Histogram plot with multiple groups # Multiple histograms on the same plot
