Class HistogramReportItem

    • Field Detail

      • DEFAULT_NUMBER_CLASSES

        public static final int DEFAULT_NUMBER_CLASSES
        Default number of classes.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HistogramReportItem

        public HistogramReportItem​(String title,
                                   String xAxisLabel)
        Constructs a new report item containing a histogram graphic. The graphic is stored in a temporary file. This is accessible via the getFilename method.
        Parameters:
        title - Title of the plotted graphic.
        xAxisLabel - Label for the x axis.
      • HistogramReportItem

        public HistogramReportItem​(String title,
                                   int height,
                                   int width,
                                   int fontSize,
                                   String xAxisLabel)
        Constructs a new report item containing a histogram graphic. The graphic is stored in a temporary file. This is accessible via the getFilename method.
        Parameters:
        title - Title of the plotted graphic.
        height - height of the plotted graphic.
        width - width of the plotted graphics.
        fontSize - the default pointsize of plotted text, interpreted at 72 dpi, so one point is approximately one pixel.
        xAxisLabel - Label for the x axis.
    • Method Detail

      • generatePlotCommand

        protected String generatePlotCommand()
        Overwrite this method to generate custom graphics.
        Specified by:
        generatePlotCommand in class AbstractPlotReportItem
        Returns:
        The R command which execution leads to the creation of the plot.
      • getColumns

        public int getColumns()
        Returns the number of classes of the histogram.
        Returns:
        The number of classes.
      • setColumns

        public void setColumns​(int columns)
        Set s the number of classes of the histogram.
        Parameters:
        columns - The number of classes.