From 6e80abcaeb7c361477eff4b8a578e54f1def81c4 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 12 Dec 2015 15:26:31 +0100 Subject: [PATCH] Documentation add subsections for each GRAPH type --- doc/statistics.texi | 20 +++++++++++++++++--- src/ui/gui/barchart.ui | 2 +- src/ui/gui/histogram.ui | 2 +- src/ui/gui/scatterplot.ui | 2 +- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/doc/statistics.texi b/doc/statistics.texi index a9adb2afc6..3877a8d43d 100644 --- a/doc/statistics.texi +++ b/doc/statistics.texi @@ -423,11 +423,20 @@ The @cmd{GRAPH} produces graphical plots of data. Only one of the subcommands @subcmd{HISTOGRAM} or @subcmd{SCATTERPLOT} can be specified, i.e. only one plot can be produced per call of @cmd{GRAPH}. The @subcmd{MISSING} is optional. +@menu +* SCATTERPLOT:: Cartesian Plots +* HISTOGRAM:: Histograms +* BAR CHART:: Bar Charts +@end menu + +@node SCATTERPLOT +@subsection Scatterplot @cindex scatterplot -The subcommand @subcmd{SCATTERPLOT} produces an xy plot of the data. The different -values of the optional third variable @var{var3} will result in different colours and/or -markers for the plot. The following is an example for producing a scatterplot. +The subcommand @subcmd{SCATTERPLOT} produces an xy plot of the +data. The different values of the optional third variable @var{var3} +will result in different colours and/or markers for the plot. The +following is an example for producing a scatterplot. @example GRAPH @@ -438,6 +447,8 @@ This example will produce a scatterplot where @var{height} is plotted versus @va on the value of the @var{gender} variable, the colour of the datapoint is different. With this plot it is possible to analyze gender differences for @var{height} vs.@: @var{weight} relation. +@node HISTOGRAM +@subsection Histogram @cindex histogram The subcommand @subcmd{HISTOGRAM} produces a histogram. Only one variable is allowed for @@ -452,7 +463,10 @@ GRAPH /HISTOGRAM = @var{weight}. @end example +@node BAR CHART +@subsection Bar Chart @cindex bar chart + The subcommand @subcmd{BAR} produces a bar chart. This subcommand requires that a @var{count-function} be specified (with no arguments) or a @var{summary-function} with a variable @var{var1} in parentheses. Following the summary or count function, the keyword @subcmd{BY} should be specified and then a catagorical variable, @var{var2}. diff --git a/src/ui/gui/barchart.ui b/src/ui/gui/barchart.ui index 40131a29fd..a4a255918d 100644 --- a/src/ui/gui/barchart.ui +++ b/src/ui/gui/barchart.ui @@ -7,7 +7,7 @@ False Barchart True - GRAPH + GRAPH#BAR-CHART True diff --git a/src/ui/gui/histogram.ui b/src/ui/gui/histogram.ui index cc63b3cb74..b2f5682a69 100644 --- a/src/ui/gui/histogram.ui +++ b/src/ui/gui/histogram.ui @@ -7,7 +7,7 @@ False Histogram True - GRAPH + GRAPH#HISTOGRAM True diff --git a/src/ui/gui/scatterplot.ui b/src/ui/gui/scatterplot.ui index 4326b9dd77..c0dae67c55 100644 --- a/src/ui/gui/scatterplot.ui +++ b/src/ui/gui/scatterplot.ui @@ -8,7 +8,7 @@ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Scatterplot True - GRAPH + GRAPH#SCATTERPLOT True -- 2.30.2