fig5.2c: Figur 5.2c

View source: R/fig5.2c.R

fig5.2cR Documentation

Figur 5.2c

Description

Replikasjonskode for histogram med tetthetsgrafikk.

Usage

fig5.2c()

Author(s)

Silje Synnøve Lyder Hermansen

Examples

  #Last inn data
  data(kap5)

  #Lag diagram
  hist(kap5$Skepsis,
       xlab = "Innvandringsskepsis",
       ylab = "Frekvens (antall respondenter)",
       main = "HISTOGRAM \nover innvandringsskepsis",
       col = "gray",
       probability = TRUE,
       sub = "(c)")

  #Legg til tetthet
  lines(density(kap5$Skepsis, na.rm = TRUE))


SiljeHermansen/laerdegR documentation built on Sept. 2, 2022, 6:17 a.m.