plottest: plottest

Description Usage Arguments Examples

View source: R/plottest.R

Description

Creates a scatter plot (eventually) divided by group with statistics

Usage

1
2
function(x, y, group = NULL,
         subplots = TRUE, sameXYaxes = TRUE, onlyResults = FALSE)

Arguments

x

The x-axis coordinates of points in the plot. It must be a vector within a data.frame

y

The y-axis coordinates of points in the plot. It must be a vector within a data.frame

group

Optional. If specified the plot shows the two groups. It can be a factor of 2 or 3 elements

subplots

If TRUE (default), it shows plots per each group

sameXYaxes

If TRUE (default), x and y axes are kept constant per each plot

onlyResults

If TRUE, no plots are shown and only results are printed in the console

Examples

1
2
3
4
5
6
7
8
## run plottest without dividing by factors
plottest(mtcars$hp, mtcars$disp)

## run bartest with a group of two factors
plottest(mtcars$hp, mtcars$disp, mtcars$vs)

## run bartest with a group of three factors
plottest(mtcars$hp, mtcars$disp, mtcars$cyl)

alemiani/explora documentation built on May 28, 2019, 4:54 p.m.