| fig5.2c | R Documentation |
Replikasjonskode for histogram med tetthetsgrafikk.
fig5.2c()
Silje Synnøve Lyder Hermansen
#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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.