`I tried to reproduce the histogram that PSPP created in R. As you can`

`see on the attached files, R also created a histogram with gaps if the`

`number of classes is too high (here: 16 which is similar to the number`

`PSPP used), but a histogram with no gaps if the number of classes is`

`lower (10 classes). So, another aspect in addition to the necessary`

`distinction between histogram and bar chart is the choice of an`

`appropriate number of classes.`

Kind regards,

## Advertising

Oliver Walter Am 06.08.2017 um 14:37 schrieb Dr. Oliver Walter:

Dear Sir or Madam,I've just read your message in the PSPP list. One problem is that yourdata are discrete with a small number of categories, but histogramsare most useful for continuous data. For discrete data with a smallnumber of categories, a bar chart is more appropriate. I attached youa pdf file which contains a histogram of your data (variable x), ahistogram of continuous data (variable y) and a bar chart of your data(variable x). Obviously, the histogram is most appropriate for thecontinuous data (variable y), but a bar chart is most appropriate fordiscrete data (variable x).Bonne journÃ©e, Oliver Walter Am 06.08.2017 um 11:57 schrieb ftr public:Hi,I want to graph a simple frequency distribution of ta variable calledsoctrust from a national sample. I compare the histogram from aFREQUENCIES command with a diagramme from a GRAPH command.The variable can have integer values from 0 to 10. FREQUENCIES /VARIABLES= soctrust /FORMAT=AVALUE TABLE /STATISTICS=NONE /HISTOGRAM=NORMAL. Graph /histogram (Normal) = soctrust.The resulting graphs are different, but both are deficient. This isthe frequency distribution.Valeur FrÃ©quence 0 115 1 36 2 164 3 243 4 226 5 482 6 236 7 256 8 114 9 27 10 17 The GRAPH procedure gives the annexed histogram dp-1.png. The FREQUENCIES procedure gives the annexed histogram dp-1.png.What is surprising is that the two procedures give different graphs,and that in both the data are not truthfully mirrored by thevisualisation. There should be no empty space between two values.Regards, -ftr_______________________________________________ Pspp-users mailing list Pspp-users@gnu.org https://lists.gnu.org/mailman/listinfo/pspp-users

_______________________________________________ Pspp-users mailing list Pspp-users@gnu.org https://lists.gnu.org/mailman/listinfo/pspp-users