Create Histogram

The Create Histogram wizard will create a histogram of your data.

Resource

Description

X Data

The name of a dataset or function containing float data e.g.

WORK.T3
Height
rnd(100)

Filter

An expression which can be used to specify which points of the X Data are used. If the expression evaluates to true, then the corresponding value in the X Data is used in the histrogram e.g.

WORK.Height>4 and WORK.Sex=”Male”

Function of X

Before the histrogram is created, it is possible to apply a function to the X Data. Choices include: None, Logarithm or Inverse

Classes

A dataset or function specifying the number of classes in the histogram.

If classes is given as a single value, n, then Gsharp will find n classes to represent the data. If classes is an array, then the array is used to specify the classes. E.g.

unique(WORK.Sex)
1//3//5//7//9
range2(-10,10,2)

Name

The data for the histrogram calculated by Gsharp is stored in a folder called ANALYZE. E.g. If Name is set to “xx” then

ANALYZE.xx contains the input data
ANALYZE.xx_histrogram contains the histrogram
ANALYZE.xx_classes contains the classes used.

You can use these datasets to make your own plots.

Viewport

There are three options on where to create the histogram viewports

Re-use – re-use the most recent viewport created by either Linefit or histrogram.

New and Tile – create a new viewport and then tile all viewports to be side by side.

New on top – create a new viewport in the default position and do not adjust the existing viewports. The user should then move and resize the histogram to the required position.

Show Statistics

If this option is selected then the following statistics are calculated and displayed on the graph.

ANALYZE.xx_avg – the average value of the input data
ANALYZE.xx_std – the standard deviation of the input data

Return to Gsharp Reference Manual.