Package org.snpeff.stats.plot
Class GooglePlotInt
java.lang.Object
org.snpeff.stats.plot.GooglePlotInt
- Direct Known Subclasses:
GoogleHistogram
A simple wrapper to goolge charts API (from charts4j)
Plots integer data
- Author:
- pcingola
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGooglePlotInt
(int[] x, int[] y, String title, String xAxisLabel, String yAxisLabel) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
getTitle()
void
setBarSpace
(int barSpace) void
setBarWidth
(int barWidth) void
setNumberLabelsXaxis
(int numberLabelsXaxis) void
setPlotMaxData
(int plotMaxData) void
setPlotSizeX
(int plotSizeX) void
setPlotSizeY
(int plotSizeY) void
void
setxAxisLabel
(String xAxisLabel) void
subsample
(int numberOfPoints, boolean averageY) Re sample data so it has at most 'numberOfPoints'Create a histogram plot using Google charts
-
Field Details
-
MAX_DATA_POINTS
public static final int MAX_DATA_POINTS- See Also:
-
-
Constructor Details
-
GooglePlotInt
-
-
Method Details
-
getBarSpace
public int getBarSpace() -
getBarWidth
public int getBarWidth() -
getNumberLabelsXaxis
public int getNumberLabelsXaxis() -
getPlotMaxData
public int getPlotMaxData() -
getPlotSizeX
public int getPlotSizeX() -
getPlotSizeY
public int getPlotSizeY() -
getTitle
-
getxAxisLabel
-
setBarSpace
public void setBarSpace(int barSpace) -
setBarWidth
public void setBarWidth(int barWidth) -
setNumberLabelsXaxis
public void setNumberLabelsXaxis(int numberLabelsXaxis) -
setPlotMaxData
public void setPlotMaxData(int plotMaxData) -
setPlotSizeX
public void setPlotSizeX(int plotSizeX) -
setPlotSizeY
public void setPlotSizeY(int plotSizeY) -
setTitle
-
setxAxisLabel
-
subsample
public void subsample(int numberOfPoints, boolean averageY) Re sample data so it has at most 'numberOfPoints' -
toURLString
Create a histogram plot using Google charts- Returns:
-