R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i386-apple-darwin9.8.0/i386 (32-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. Natural language support but running in an English locale 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. [R.app GUI 1.40 (5751) i386-apple-darwin9.8.0] [History restored from /Users/morpheus/.Rhistory] > FondoComune <- read.table("componenti-comune.txt", sep=",", header=TRUE) > table(FondoComune$Componenti) 1 2 3 4 5 6 7 8 9 10 11 18 57 123 34 44 23 6 4 3 2 1 1 1 > stem(FondoComune$Componenti) The decimal point is at the | 1 | 000000000000000000000000000000000000000000000000000000000 2 | 00000000000000000000000000000000000000000000000000000000000000000000+43 3 | 0000000000000000000000000000000000 4 | 00000000000000000000000000000000000000000000 5 | 00000000000000000000000 6 | 000000 7 | 0000 8 | 000 9 | 00 10 | 0 11 | 0 12 | 13 | 14 | 15 | 16 | 17 | 18 | 0 > hist(FondoComune$Componenti, breaks=c(0.5:18.5), xlab="Componenti nucleo familiare", main="Fondo Immobiliare (dati Comune)", freq=FALSE, xlim=c(0,20)) > lines(density(FondoComune$Componenti), col="red") > quartz.save("pdf_componenti_comune.png") quartz 2 > FondoAquilatv <- read.table("componenti-canone-aquilatv.txt", sep=",", header=TRUE) > names(FondoAquilatv) [1] "Componenti" "Canone" > table(FondoAquilatv$Componenti) 1 2 3 4 5 6 7 8 9 10 59 125 37 45 25 5 3 4 3 2 > stem(FondoAquilatv$Componenti) The decimal point is at the | 1 | 00000000000000000000000000000000000000000000000000000000000 2 | 00000000000000000000000000000000000000000000000000000000000000000000+45 3 | 0000000000000000000000000000000000000 4 | 000000000000000000000000000000000000000000000 5 | 0000000000000000000000000 6 | 00000 7 | 000 8 | 0000 9 | 000 10 | 00 > hist(FondoAquilatv$Componenti, breaks=c(0.5:10.5), xlab="Componenti nucleo familiare", main="Fondo Immobiliare (dati Aquilatv.it)", freq=FALSE, xlim=c(0,14)) > lines(density(FondoAquilatv$Componenti), col="red") > quartz.save("pdf_componenti_aquilatv.png") quartz 2 >