Last data update: 2014.03.03

R: plots the post-hoc for the consmixed object
plot.consmixedR Documentation

plots the post-hoc for the consmixed object

Description

plots the least squares means and differences of least squares means together with the confidence intervals for the fixed effects

Usage

## S3 method for class 'consmixed'
 plot(x, main = NULL, cex = 1.4, 
                           which.plot = c("LSMEANS", "DIFF of LSMEANS"),
                           effs = NULL, ...)

Arguments

x

object of class consmixed

main

string. Title for the plots

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default

which.plot

type of plot to be drawn

effs

name of the effext for which to draw the plots

...

other potential arguments.

Value

returns NULL

Author(s)

Alexandra Kuznetsova

Examples


#convert some variables to factors in Tham
ham <- convertToFactors(ham, c("Consumer", "Product", "Information", "Gender"))

res <- consmixed(response="Liking", 
Prod_effects= c("Product","Information"), 
Cons_effects=c("Gender","Age"), Cons = "Consumer", data =ham, structure=1)

plot(res)

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(SensMixed)
Loading required package: lmerTest
Loading required package: Matrix
Loading required package: lme4

Attaching package: 'lmerTest'

The following object is masked from 'package:lme4':

    lmer

The following object is masked from 'package:stats':

    step


Attaching package: 'SensMixed'

The following object is masked from 'package:lmerTest':

    ham

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SensMixed/plot.consmixed.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.consmixed
> ### Title: plots the post-hoc for the consmixed object
> ### Aliases: plot.consmixed
> ### Keywords: ~kwd1 ~kwd2
> 
> ### ** Examples
> 
> 
> #convert some variables to factors in Tham
> ham <- convertToFactors(ham, c("Consumer", "Product", "Information", "Gender"))
> 
> res <- consmixed(response="Liking", 
+ Prod_effects= c("Product","Information"), 
+ Cons_effects=c("Gender","Age"), Cons = "Consumer", data =ham, structure=1)
> 
> plot(res)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>