Learn R Programming

qat (version 0.74)

qat_plot_histogram_test: Plot a histogram test result

Description

A plot of the result of a histogram test will be produced.

Usage

qat_plot_histogram_test(resultfield, filename, blocksize = -1, numofbars = -1, factorofbar = -1, metric = NULL, runs = NULL, measurement_name = "", directoryname = "", plotstyle = NULL)

Arguments

resultfield
The resulting matrix of qat\_analyse\_histogram\_test\_xxx\_xd
filename
Name of the file without extension.
blocksize
Length of a block.
numofbars
Number of bins of the histograms.
factorofbar
Correction factor for non-value bins.
metric
Metric used for the comparison of the histograms.
runs
Number of used blocks.
measurement_name
Name of the measurement.
directoryname
Directory, where the resulted file should be stored.
plotstyle
A list with a qat color scheme.

Value

No return value.

Details

A plot will be produced, which base on the resulting field of qat\_analyse\_histogram\_test\_xxx\_xd. With additional information on the parameters, which were used while performing the test, this function will produce a more detailed plot. When no plotstyle is defined the standard-colorscheme will be used. The resulting plot will be stored in the folder, which is defined by directory under the given filename, with the extension png.

Examples

Run this code
	vec <- c(rnorm(1000), rnorm(1000)+1)
	result <- qat_analyse_histogram_test_emd_1d(vec, 50, 65)
	qat_plot_histogram_test(result$field, "test_emd_1d", result$blocksize, 
	result$numofbars, "emd", result$runs)

Run the code above in your browser using DataLab