Last data update: 2014.03.03

R: onesample.plot
onesample.plotR Documentation

onesample.plot

Description

plots for one sample tests

Usage

onesample.plot(variables,data=NULL,test.value,scale=FALSE,type="hist",alpha=.2)

Arguments

variables

An expression denoting a set of variable.

data

A data.frame from which the variables will be selected.

test.value

null hypothesis test value

scale

scale variables

type

type of plot. 'hist' or 'box' are allowed

alpha

transparency of points for box plot

Examples


data(mtcars)
onesample.plot(variables=d(mpg,cyl,disp,hp,drat,wt,qsec,vs,am,
gear,carb),data=mtcars,type='hist')

onesample.plot(variables=d(mpg,cyl,disp,hp,drat,wt,qsec,vs,am,
gear,carb),data=mtcars,type='box',alpha=1)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Deducer)
Loading required package: ggplot2
Loading required package: JGR
Loading required package: rJava
Loading required package: JavaGD
Loading required package: iplots

Please type JGR() to launch console. Platform specific launchers (.exe and .app) can also be obtained at http://www.rforge.net/JGR/files/.


Loading required package: car
Loading required package: MASS


Note Non-JGR console detected:
	Deducer is best used from within JGR (http://jgr.markushelbig.org/).
	To Bring up GUI dialogs, type deducer().

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Deducer/onesample.plot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: onesample.plot
> ### Title: onesample.plot
> ### Aliases: onesample.plot
> 
> ### ** Examples
> 
> 
> data(mtcars)
> onesample.plot(variables=d(mpg,cyl,disp,hp,drat,wt,qsec,vs,am,
+ gear,carb),data=mtcars,type='hist')
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
> 
> onesample.plot(variables=d(mpg,cyl,disp,hp,drat,wt,qsec,vs,am,
+ gear,carb),data=mtcars,type='box',alpha=1)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>