Module rchart

Class Rchart

java.lang.Object
de.grogra.rchart.Rchart
All Implemented Interfaces:
SliderMouseReleasedListener, Disposable, ComponentListener, MouseListener, MouseMotionListener, Serializable, EventListener, DatasetChangeListener

Chart plugin for GroIMP based on R/ggplot2
Version:
1.0
Author:
Lukas Gürtler
See Also:
  • Constructor Details

    • Rchart

      public Rchart(Dataset dataset, boolean interactive)
      constructor
      Parameters:
      dataset - plot data
      interactive - determines if the plot updates when the data changes
    • Rchart

      public Rchart(DatasetRef dsr, boolean interactive)
      constructor
      Parameters:
      dsr - plot data
      interactive - determines if the plot updates when the data changes
  • Method Details

    • getDataset

      public Dataset getDataset()
      get the dataset
      Returns:
      dataset
    • getTitle

      public String getTitle()
      get the plot title
      Returns:
      title
    • setTitle

      public void setTitle(String title)
      set the plot title
      Parameters:
      title -
    • show

      public void show()
      Opens the plot window (if not already open) and plots according to settings. Only needed when initialized with interactive=false.
    • inspectData

      public void inspectData()
      opens a browser table application for the dataset
    • datasetChanged

      public void datasetChanged(DatasetChangeEvent event)
      event handler that is invoked when the dataset is changed
      Specified by:
      datasetChanged in interface DatasetChangeListener
      Parameters:
      event - information about the event.
    • annotate

      public void annotate(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • annotation_custom

      public void annotation_custom(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • coord_cartesian

      public void coord_cartesian(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • coord_fixed

      public void coord_fixed(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • coord_flip

      public void coord_flip(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • coord_map

      public void coord_map(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • coord_polar

      public void coord_polar(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • coord_quickmap

      public void coord_quickmap(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • coord_trans

      public void coord_trans(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • expand_limits

      public void expand_limits(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • facet_grid

      public void facet_grid(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • facet_wrap

      public void facet_wrap(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • geom_abline

      public Rchart.PlotOption geom_abline(String... args)
      ggplot2 function
      Parameters:
      args - arguments
      Returns:
      PlotOption instance
    • geom_area

      public Rchart.PlotOption geom_area(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_bar

      public Rchart.PlotOption geom_bar(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_bar

      public Rchart.PlotOption geom_bar(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_bin2d

      public Rchart.PlotOption geom_bin2d(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_blank

      public Rchart.PlotOption geom_blank(String... args)
      ggplot2 function
      Parameters:
      args - arguments
      Returns:
      PlotOption instance
    • geom_boxplot

      public Rchart.PlotOption geom_boxplot(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_col

      public Rchart.PlotOption geom_col(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_contour

      public Rchart.PlotOption geom_contour(int Xcolumn, int Ycolumn, int Zcolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Zcolumn - column index from dataset to map column to z-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_count

      public Rchart.PlotOption geom_count(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_crossbar

      public Rchart.PlotOption geom_crossbar(int Xcolumn, int Ycolumn, int Ymin, int Ymax, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Ymin - column index from dataset to map column to range x-values
      Ymax - column index from dataset to map column to range y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_curve

      public Rchart.PlotOption geom_curve(int Xstart, int Ystart, int Xend, int Yend, String... args)
      ggplot2 function
      Parameters:
      Xstart - column index from dataset to map column to start x-values
      Ystart - column index from dataset to map column to start y-values
      Xend - column index from dataset to map column to end x-values
      Yend - column index from dataset to map column to end y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_density

      public Rchart.PlotOption geom_density(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_density2d

      public Rchart.PlotOption geom_density2d(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_dotplot

      public Rchart.PlotOption geom_dotplot(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_errorbar

      public Rchart.PlotOption geom_errorbar(int column, int Ymin, int Ymax, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      Ymin - column index from dataset to map column to range x-values
      Ymax - column index from dataset to map column to range y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_errorbarh

      public Rchart.PlotOption geom_errorbarh(int column, int Xmin, int Xmax, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      Xmin - column index from dataset to map column to range x-values
      Xmax - column index from dataset to map column to range y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_freqpoly

      public Rchart.PlotOption geom_freqpoly(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_hex

      public Rchart.PlotOption geom_hex(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_histogram

      public Rchart.PlotOption geom_histogram(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_hline

      public Rchart.PlotOption geom_hline(double yintercept, String... args)
      ggplot2 function
      Parameters:
      yintercept - height to intercept y-axis
      args - arguments
      Returns:
      PlotOption instance
    • geom_jitter

      public Rchart.PlotOption geom_jitter(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_label

      public Rchart.PlotOption geom_label(String... args)
      ggplot2 function
      Parameters:
      args - arguments
      Returns:
      PlotOption instance
    • geom_label

      public Rchart.PlotOption geom_label(int Xcolumn, int Ycolumn, String[] labels, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      labels - label text array
      args - arguments
      Returns:
      PlotOption instance
    • geom_label

      public Rchart.PlotOption geom_label(double x, double y, String label, String... args)
      ggplot2 function
      Parameters:
      x - x-coordinate to place the label
      y - y-coordinate to place the label
      label - label text
      args - arguments
      Returns:
      PlotOption instance
    • geom_label_repel

      public Rchart.PlotOption geom_label_repel(int Xcolumn, int Ycolumn, String[] labels, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      labels - label text array
      args - arguments
      Returns:
      PlotOption instance
    • geom_line

      public Rchart.PlotOption geom_line(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_linerange

      public Rchart.PlotOption geom_linerange(int column, int Ymin, int Ymax, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      Ymin - column index from dataset to map column to line range x-values
      Ymax - column index from dataset to map column to line range y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_map

      public Rchart.PlotOption geom_map(String... args)
      ggplot2 function
      Parameters:
      args - arguments
      Returns:
      PlotOption instance
    • geom_path

      public Rchart.PlotOption geom_path(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_point

      public Rchart.PlotOption geom_point(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_pointrange

      public Rchart.PlotOption geom_pointrange(int Xcolumn, int Ycolumn, int Ymin, int Ymax, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Ymin - column index from dataset to map column to range x-values
      Ymax - column index from dataset to map column to range x-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_polygon

      public Rchart.PlotOption geom_polygon(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_qq

      public Rchart.PlotOption geom_qq(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_quantile

      public Rchart.PlotOption geom_quantile(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_raster

      public Rchart.PlotOption geom_raster(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_rect

      public Rchart.PlotOption geom_rect(double xmin, double xmax, double ymin, double ymax, String... args)
      ggplot2 function
      Parameters:
      xmin - min x-value of rectangle
      xmax - max x-value of rectangle
      ymin - min y-value of rectangle
      ymax - max y-value of rectangle
      args - arguments
      Returns:
      PlotOption instance
    • geom_ribbon

      public Rchart.PlotOption geom_ribbon(int column, int Ymin, int Ymax, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      Ymin - column index from dataset to map column to range x-values
      Ymax - column index from dataset to map column to range x-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_rug

      public Rchart.PlotOption geom_rug(String... args)
      ggplot2 function
      Parameters:
      args - arguments
      Returns:
      PlotOption instance
    • geom_rug

      public Rchart.PlotOption geom_rug(int column, String... args)
      ggplot2 function
      Parameters:
      column - column index from dataset to map column to values
      args - arguments
      Returns:
      PlotOption instance
    • geom_rug

      public Rchart.PlotOption geom_rug(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_segment

      public Rchart.PlotOption geom_segment(int Xstart, int Ystart, int Xend, int Yend, String... args)
      ggplot2 function
      Parameters:
      Xstart - column index from dataset to map column to start x-values
      Ystart - column index from dataset to map column to start y-values
      Xend - column index from dataset to map column to end x-values
      Yend - column index from dataset to map column to end y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_smooth

      public Rchart.PlotOption geom_smooth(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_spoke

      public Rchart.PlotOption geom_spoke(int Xcolumn, int Ycolumn, int angle, int radius, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      angle - column index from dataset to map angle to data points
      radius - column index from dataset to map radius to data points
      args - arguments
      Returns:
      PlotOption instance
    • geom_step

      public Rchart.PlotOption geom_step(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_text

      public Rchart.PlotOption geom_text(double x, double y, String text, String... args)
      ggplot2 function
      Parameters:
      x - x-coordinate to place the label
      y - y-coordinate to place the label
      text - text
      args - arguments
      Returns:
      PlotOption instance
    • geom_tile

      public Rchart.PlotOption geom_tile(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_violin

      public Rchart.PlotOption geom_violin(int Xcolumn, int Ycolumn, String... args)
      ggplot2 function
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      args - arguments
      Returns:
      PlotOption instance
    • geom_vline

      public Rchart.PlotOption geom_vline(double xintercept, String... args)
      ggplot2 function
      Parameters:
      xintercept - width to intercept x-axis
      args - arguments
      Returns:
      PlotOption instance
    • ggtitle

      public void ggtitle(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • guides

      public void guides(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • labs

      public void labs(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_color_manual

      public void scale_color_manual(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_linetype_manual

      public void scale_linetype_manual(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_brewer

      public void scale_fill_brewer(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_continuous

      public void scale_fill_continuous(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_discrete

      public void scale_fill_discrete(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_distiller

      public void scale_fill_distiller(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_gradient

      public void scale_fill_gradient(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_gradient2

      public void scale_fill_gradient2(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_gradientn

      public void scale_fill_gradientn(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_fill_manual

      public void scale_fill_manual(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_radius

      public void scale_radius(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_shape

      public void scale_shape(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_shape_manual

      public void scale_shape_manual(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_size

      public void scale_size(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_size_area

      public void scale_size_area(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_continuous

      public void scale_x_continuous(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_date

      public void scale_x_date(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_datetime

      public void scale_x_datetime(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_discrete

      public void scale_x_discrete(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_identity

      public void scale_x_identity(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_log10

      public void scale_x_log10(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_manual

      public void scale_x_manual(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_reverse

      public void scale_x_reverse(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_x_sqrt

      public void scale_x_sqrt(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_continuous

      public void scale_y_continuous(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_date

      public void scale_y_date(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_datetime

      public void scale_y_datetime(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_discrete

      public void scale_y_discrete(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_identity

      public void scale_y_identity(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_log10

      public void scale_y_log10(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_manual

      public void scale_y_manual(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_reverse

      public void scale_y_reverse(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • scale_y_sqrt

      public void scale_y_sqrt(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme

      public void theme(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_bw

      public void theme_bw(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_classic

      public void theme_classic(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_dark

      public void theme_dark(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_grey

      public void theme_grey(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_light

      public void theme_light(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_linedraw

      public void theme_linedraw(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_minimal

      public void theme_minimal(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • theme_void

      public void theme_void(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • xlab

      public void xlab(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • xlim

      public void xlim(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • ylab

      public void ylab(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • ylim

      public void ylim(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • zlab

      public void zlab(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • zlim

      public void zlim(String... args)
      ggplot2 function
      Parameters:
      args - arguments
    • ggplot2_function

      public void ggplot2_function(String function, String... args)
      ggplot2 function
      Parameters:
      function - function name
      args - arguments
    • Table

      public void Table()
      plot table
    • Table

      public void Table(String... colNames)
      plot table
      Parameters:
      colNames - array of column names
    • Table

      public void Table(String[] colNames, String[] rowNames)
      plot table
      Parameters:
      colNames - array of column names
      rowNames - array of row names
    • ScatterPlot3D

      public void ScatterPlot3D(int Xcolumn, int Ycolumn, int Zcolumn)
      3D scatter plot
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Zcolumn - column index from dataset to map column to z-values
    • ScatterPlot3D

      public void ScatterPlot3D(int Xcolumn, int Ycolumn, int Zcolumn, String Xlabel, String Ylabel, String Zlabel)
      3D scatter plot
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Zcolumn - column index from dataset to map column to z-values
      Xlabel - x-axis label
      Ylabel - y-axis label
      Zlabel - z-axis label
    • LinePlot3D

      public void LinePlot3D(int Xcolumn, int Ycolumn, int Zcolumn)
      3D line plot
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Zcolumn - column index from dataset to map column to z-values
    • LinePlot3D

      public void LinePlot3D(int Xcolumn, int Ycolumn, int Zcolumn, String Xlabel, String Ylabel, String Zlabel)
      3D line plot
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Zcolumn - column index from dataset to map column to z-values
      Xlabel - x-axis label
      Ylabel - y-axis label
      Zlabel - z-axis label
    • HeatMap

      public void HeatMap(int Xcolumn, int Ycolumn, int HeatColumn, double resolution)
      heat map plot
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      HeatColumn - column index from dataset to map column to heat values
      resolution - interpolation resolution
    • HeatMap

      public void HeatMap(int Xcolumn, int Ycolumn, int HeatColumn, double resolution, String Xlabel, String Ylabel, String Heatlabel, String title)
      heat map plot
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      HeatColumn - column index from dataset to map column to heat values
      resolution - interpolation resolution
      Xlabel - x-axis label
      Ylabel - y-axis label
      Heatlabel - heat values label
    • HeatMap

      public void HeatMap(int Xcolumn, int Ycolumn, int HeatColumn, double resolution, String Xlabel, String Ylabel, String Heatlabel)
      heat map plot
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      HeatColumn - column index from dataset to map column to heat values
      resolution - interpolation resolution
      Xlabel - x-axis label
      Ylabel - y-axis label
    • LinePlot

      public Rchart.PlotOption LinePlot(int Xcolumn, int Ycolumn)
      wrapper for function geom_line(...)
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Returns:
      PlotOption instance
    • Histogram

      public Rchart.PlotOption Histogram(int column)
      wrapper for function geom_histogram(...)
      Parameters:
      column - column index from dataset to map column to values
      Returns:
      PlotOption instance
    • Histogram

      public Rchart.PlotOption Histogram(int column, double binwidth)
      wrapper for function geom_histogram(...)
      Parameters:
      column - column index from dataset to map column to values
      binwidth - width of histogram bins
      Returns:
      PlotOption instance
    • BarPlot

      public Rchart.PlotOption BarPlot(int Xcolumn, int Ycolumn)
      wrapper for function geom_bar(...)
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Returns:
      PlotOption instance
    • DotPlot

      public Rchart.PlotOption DotPlot(int Xcolumn, int Ycolumn)
      wrapper for function geom_point(...)
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Returns:
      PlotOption instance
    • StepPlot

      public Rchart.PlotOption StepPlot(int Xcolumn, int Ycolumn)
      wrapper for function geom_step(...)
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Returns:
      PlotOption instance
    • BoxPlot

      public Rchart.PlotOption BoxPlot(int column)
      wrapper for function geom_boxplot(...)
      Parameters:
      column - column index from dataset to map column to values
      Returns:
      PlotOption instance
    • AreaPlot

      public Rchart.PlotOption AreaPlot(int Xcolumn, int Ycolumn)
      wrapper for function geom_area(...)
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Returns:
      PlotOption instance
    • FittedLinePlot

      public Rchart.PlotOption FittedLinePlot(int Xcolumn, int Ycolumn)
      wrapper for function geom_smooth(...,"method = 'loess'")
      Parameters:
      Xcolumn - column index from dataset to map column to x-values
      Ycolumn - column index from dataset to map column to y-values
      Returns:
      PlotOption instance
    • expr

      public void expr(String value)
      execute any R expression
      Parameters:
      value - expression
    • setXAxisLabel

      public void setXAxisLabel(String label)
      set x-axis label
    • setYAxisLabel

      public void setYAxisLabel(String label)
      set y-axis label
    • setZAxisLabel

      public void setZAxisLabel(String label)
      set z-axis label
    • setXAxisLimits

      public void setXAxisLimits(double min, double max)
      set x-axis limits
      Parameters:
      min - minimum value
      max - maximum value
    • setYAxisLimits

      public void setYAxisLimits(double min, double max)
      set y-axis limits
      Parameters:
      min - minimum value
      max - maximum value
    • setZAxisLimits

      public void setZAxisLimits(double min, double max)
      set z-axis limits
      Parameters:
      min - minimum value
      max - maximum value
    • setLegendPosition

      public void setLegendPosition(Rchart.LegendPosition pos)
      set legend position
      Parameters:
      pos - legend position value
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Specified by:
      mouseDragged in interface MouseMotionListener
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Specified by:
      mouseMoved in interface MouseMotionListener
    • SliderMouseReleasedEvent

      public void SliderMouseReleasedEvent()
      Specified by:
      SliderMouseReleasedEvent in interface SliderMouseReleasedListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
    • componentResized

      public void componentResized(ComponentEvent e)
      Specified by:
      componentResized in interface ComponentListener
    • dispose

      public void dispose()
      dispose instance
      Specified by:
      dispose in interface Disposable
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • componentHidden

      public void componentHidden(ComponentEvent e)
      Specified by:
      componentHidden in interface ComponentListener
    • componentShown

      public void componentShown(ComponentEvent e)
      Specified by:
      componentShown in interface ComponentListener
    • componentMoved

      public void componentMoved(ComponentEvent e)
      Specified by:
      componentMoved in interface ComponentListener