plot

fun plot(x: Array<DoubleArray>, mark: Char = '*', color: Color = Color.BLACK): Canvas(source)

Scatter plot.

Return

the plot canvas.

Parameters

x

an n-by-2 or n-by-3 matrix that describes coordinates of points.

mark

the mark used to draw points.

color

the color used to draw points.


fun plot(x: Array<DoubleArray>, y: Array<String>, mark: Char = '*'): Canvas(source)

Scatter plot with string group labels.

Return

the plot canvas.

Parameters

x

an n-by-2 or n-by-3 matrix that describes coordinates of points.

y

labels of points.

mark

the mark used to draw points.


fun plot(x: Array<DoubleArray>, y: IntArray, mark: Char = '*'): Canvas(source)

Scatter plot with integer class labels.

Return

the plot canvas.

Parameters

x

an n-by-2 or n-by-3 matrix that describes coordinates of points.

y

class labels.

mark

the mark used to draw points.


fun plot(data: DataFrame, x: String, y: String, mark: Char = '*', color: Color = Color.BLACK): Canvas(source)

Scatter plot from a data frame.

Return

the plot canvas.

Parameters

data

the data frame.

x

the column as x-axis.

y

the column as y-axis.

mark

the mark used to draw points.

color

the color used to draw points.


fun plot(data: DataFrame, x: String, y: String, category: String, mark: Char = '*'): Canvas(source)

Scatter plot from a data frame with color by category.

Return

the plot canvas.

Parameters

data

the data frame.

x

the column as x-axis.

y

the column as y-axis.

category

the category column for coloring.

mark

the mark used to draw points.


fun plot(data: DataFrame, x: String, y: String, z: String, mark: Char = '*', color: Color = Color.BLACK): Canvas(source)

3D Scatter plot from a data frame.

Return

the plot canvas.

Parameters

data

the data frame.

x

the column as x-axis.

y

the column as y-axis.

z

the column as z-axis.

mark

the mark used to draw points.

color

the color used to draw points.


fun plot(data: DataFrame, x: String, y: String, z: String, category: String, mark: Char = '*'): Canvas(source)

3D Scatter plot from a data frame with color by category.

Return

the plot canvas.

Parameters

data

the data frame.

x

the column as x-axis.

y

the column as y-axis.

z

the column as z-axis.

category

the category column for coloring.

mark

the mark used to draw points.