Last data update: 2014.03.03

R: Diagramme en croix
diagcroixR Documentation

Diagramme en croix

Description

Le diagramme en croix affiche pour chaque observation une petite croix au-dessus de la modalité correspondante

Usage

diagcroix(x, titre, col, family = "HersheyScript")

Arguments

x

variable qualitative

titre

chaine de caractères pour le titre du graphique

col

vecteur de chaines de caractères pour la couleur de chaque modalité

family

famille de polices pour le titre. Par défaut, la police utilisée est "HersheyScript".

Value

Un graphique

Author(s)

Lafaye de Micheaux Pierre <lafaye@dms.umontreal.ca>, Remy Drouilhet <Remy.Drouilhet@upmf-grenoble.fr>, Liquet Benoit <benoit.liquet@isped.u-bordeaux2.fr>

References

Chapitre 9 (Statistique descriptive) du livre: Le logiciel R, Maitriser le langage, Effectuer des analyses statistiques

Examples

data(NUTRIAGE)
attach(NUTRIAGE)
situation <- as.factor(situation)
levels(situation) <- c("seul","couple","famille","autre")
diagcroix(situation,col=c("orange","darkgreen","black","tan"))
detach(NUTRIAGE)

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(LeLogicielR)
Loading required package: xtable
Loading required package: RColorBrewer
Loading required package: gdata
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.

gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.

Attaching package: 'gdata'

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

    nobs

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

    object.size

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

    startsWith

Loading required package: IndependenceTests
LeLogicielRPackageFunctions and datasets to accompany the book "Le logiciel R:
Maitriser le langage, Effectuer des analyses statistiques"
(french)1.22012-04-20Lafaye de Micheaux Pierre, Drouilhet Remy, Liquet BenoitP Lafaye de Micheaux <lafaye@dms.umontreal.ca>This package provides functions and datasets for the
        reader of the book "Le logiciel R: Maitriser le langage,
        Effectuer des analyse statistiques". The documentation and help
        pages are written in french.frGPL (>= 2)yesxtable, RColorBrewer, gdata, IndependenceTestslatin12012-12-15 14:37:01 UTC; lafayeCRAN2012-12-15 15:55:07R 3.3.1; x86_64-pc-linux-gnu; 2016-07-02 01:51:13 UTC; unix
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LeLogicielR/diagcroix.Rd_%03d_medium.png", width=480, height=480)
> ### Name: diagcroix
> ### Title: Diagramme en croix
> ### Aliases: diagcroix
> 
> ### ** Examples
> 
> data(NUTRIAGE)
> attach(NUTRIAGE)
> situation <- as.factor(situation)
> levels(situation) <- c("seul","couple","famille","autre")
> diagcroix(situation,col=c("orange","darkgreen","black","tan"))
> detach(NUTRIAGE)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>