Skip to content

Gautzilla/DataPlotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataPlotter

Application I made in order to learn Windows Form. It intends at plotting data that is formatted for statistics softwares such as JASP or SPSS.

I abandonned the development a while back (when I got into R and Python vizualisation libraries) and left some unfinished/bugged features as they are.

Overall

The aim of this application was to offer some flexibility in plotting Analyses of Variance (ANOVAs) error bars.

An example experiment plan (which is the one of a published experiment that used the current application for data vizualisation) will be used for demo, in which loudness estimates are made in three environments, for a source that could either be visible or hidden and was placed at one of 5 distances from the listener, displaying sounds with 3 attenuation levels:

Independant Variable Levels
Environment Free field
Concert hall
Sports hall
Distance 1 m
2 m
4 m
8 m
16 m
Level 0 dB
-6 dB
-12 dB
Visibility Visible
Hidden

The DataPlotter application allow for easily plotting a given interaction, e.g. the loudness rating as a function of the source distance for each attenuation level:

Variable selection window Output vizualisation
Variable selection window Output plot

Data input

Statistics softwares that run repeated measures ANOVAs often require the data to be organized as follow:

  • Each row represents a participant.
  • Each column represents a single combination of the independant variables levels.

The organized data columns would thus be:

Column Content
0 Free field / 1 m / 0 dB / Visible
1 Free field / 1 m / 0 dB / Hidden
2 Free field / 1 m / -6 dB / Visible
3 Free field / 1 m / -6 dB / Hidden
... ...
89 Sports Hall / 16 m / -12 dB / Hidden

The home Set window of the application asks for a data file (comma-separated values, organiazed as seen before) and a variables info file, which contains infos on the dependant and independant variables:

Set window

The variables info file should be formatted as follow:

  • First line describes the dependent variable
  • All other lines describe the independent variables (one per line)
  • Each line contains the name of the variable, its type (lin, log or qualitative), its levels (if independent) and its unit (if applicable), separated by semicolons.

The variables info file of the example data is provided in assets/infofile.txt.

Variables to vizualise

Description

The Variables window is used for chosing which independant variable(s) (and which of their levels) will be taken into account for the current vizualisation:

Variable Appearance
X-axis Defines the x axis
Y-axis Defines the y axis
Y-axis #2 Plotted on lines of different colors, described in the legend
Y-axis #3+ Data is filtered to keep only the selected levels of these variables

Examples

Factors Variable selection window Output vizualisation
1 (simple effect) Variable selection window Output plot
2 Variable selection window Output plot
2 (selected levels) Variable selection window Output plot
3 Variable selection window Output plot
3 Variable selection window Output plot

Chart parameters

The vizualisation is parametrable: the axis ranges, names and types (lin or log), the use or not of a linear regression between the means, the legend docking position, the ticks and more can be configured in the Chart window:

Chart window

Vizualisation saving

After hitting the Plot button, a new window depicting the vizualisation is created. Clicking on that window will export the vizualisation as an Encapsulated PostScript file in the Documents/DataPlotter folder.

The vizualisation parameters (including the info and data file paths, the chart configuration and the chosen variables)can be saved by hitting the Save button and recalled by hitting Load existing set in the Set window:

Set loading window

About

Winforms app for ploting errorBar figures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages