camembert: Diagramme circulaire

Description Usage Arguments Value Author(s) References See Also Examples

Description

Cette fonction offre une variante de la fonction pie

Usage

1
2
camembert(x, col = NULL, cex = 0.7, family = "sans", family.main = "HersheyScript",
          main = NULL, col.main = "black", cex.main = 0.5)

Arguments

x

variable qualitative

col

un vecteur de chaine de caractères pour la couleur de chaque modalité

cex

taille des caractères pour le graphique

family

famille de polices pour les éléments sur le camembert. Par défaut, la police utilisée est "sans".

family.main

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

main

titre

col.main

couleur du titre

cex.main

taille des caractères pour le titre

Value

Un graphique

Author(s)

Lafaye de Micheaux Pierre <lafaye@unsw.edu.au>, 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

See Also

pie

Examples

1
2
3
4
5
6
7
8
data(NUTRIAGE)
attach(NUTRIAGE)
matgras <- as.factor(matgras)
levels(matgras) <- c("beurre","margarine","arachide","tournesol","olive","Isio4","colza","canard")
require("RColorBrewer")
col <- brewer.pal(8,"Pastel2")
camembert(matgras,col)
detach(NUTRIAGE)

Example output

Loading required package: xtable
Loading required package: RColorBrewer
Loading required package: gdata
sh: 1: cannot create /dev/null: Permission denied
gdata: Unable to locate valid perl interpreter
gdata: 
gdata: read.xls() will be unable to read Excel XLS and XLSX files
gdata: unless the 'perl=' argument is used to specify the location of a
gdata: valid perl intrpreter.
gdata: 
gdata: (To avoid display of this message in the future, please ensure
gdata: perl is installed and available on the executable search path.)
sh: 1: cannot create /dev/null: Permission denied
gdata: Unable to load perl libaries needed by read.xls()
gdata: to support 'XLX' (Excel 97-2004) files.

gdata: Unable to load perl libaries needed by read.xls()
gdata: to support 'XLSX' (Excel 2007+) files.

gdata: Run the function 'installXLSXsupport()'
gdata: to automatically download and install the perl
gdata: libaries needed to support Excel XLS and XLSX formats.

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.4.1; x86_64-pc-linux-gnu; 2017-09-23 07:01:03 UTC; unix

LeLogicielR documentation built on May 1, 2019, 9:10 p.m.