User Tools

Site Tools


visual3d:documentation:reports:plotting_p2d_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:reports:plotting_p2d_data [2024/06/19 12:53] sgrangervisual3d:documentation:reports:plotting_p2d_data [2024/07/17 15:46] (current) – created sgranger
Line 1: Line 1:
-{{{{{{{{====== introduction ======+====== Plotting P2D Data ======
  
-==== what is p2d data? ====+===== Introduction =====
  
-p2d data is average normalized data that was calculated over multiple cycles or trials. typically, p2d signals are calculated using the [[visual3d:documentation:pipeline:signal_commands:global_normalized_signal_mean|global_normalized_signal_mean]] command. the average across multiple trials will be stored in the global workspace.+=== What is P2D Data? ===
  
-==== background ====+P2D data is average normalized data that was calculated over multiple cycles or trials. Typically, P2D signals are calculated using the [[Visual3D:Documentation:Pipeline:Signal_Commands:Global_Normalized_Signal_Mean|Global_Normalized_Signal_Mean]] command. The average across multiple trials will be stored in the GLOBAL workspace.
  
-to plot control data - or an average data set, you must first create the average data set. this is done by creating a p2d file. once the p2d file has been created, you can load it into your workspace and add the data to a graph.+=== Background ===
  
-usually the first element of the p2d file contains the "frame" data (plotted as the x axis data), the second component is the mean data (plotted as the y axis data)the standard deviation is the third component (check box "add standard deviation"). the standard deviation will be displayed as shaded region on the graph.+To plot control data - or an average data setyou must first create the average data set. This is done by creating a P2D file. Once the P2D file has been createdyou can load it into your workspace and add the data to a graph.
  
-==== download ====+Usually the first element of the P2D file contains the "frame" data (plotted as the X Axis Data), the second component is the mean data (plotted as the Y Axis Data), the standard deviation is the third component (check box "Add Standard Deviation"). The standard deviation will be displayed as a shaded region on the graph.
  
-[[https://www.has-motion.com/download/examples/plotnormaldata/plot%20p2d%20data.zip|you can download the sample files here.]]+=== Download ===
  
-  * **sub01_workspace.cmz** sample subject workspace +[[https://www.has-motion.com/download/examples/PlotNormalData/Plot%20P2D%20Data.zip|You can download the sample files here.]]
-  * **normal_data_individual_right_and_left.vnd** sample control database +
-  * **report_template_p2d.rgt** sample report template plotting p2d data+
  
-==== before you do this tutorial: ====+  * **Sub01_Workspace.cmz** sample subject workspace 
 +  * **Normal_Data_Individual_Right_and_Left.vnd** sample control database 
 +  * **Report_Template_P2D.rgt** sample report template plotting P2D data
  
-before you complete this tutorial, you want to make sure:+=== Before you do this tutorial: ===
  
-  - [[visual3d:tutorials:reports:creating_a_report|that you know how to create a graph]] +Before you complete this tutorial, you want to make sure:
-  - [[visual3d:documentation:reports:normative_data_from_cmo_library|that you know how to create a p2d file]]+
  
-====== plot p2d data ======+  - [[Visual3D:Tutorials:Reports:Creating_a_Report|That you know how to create a graph]] 
 +  - [[Visual3D:Documentation:Reports:Normative_Data_From_CMO_Library|That you know how to create a P2D file]]
  
-==== open the cmz file ====+===== Plot P2D Data =====
  
-this step is done to load the data for one subject.+=== Open the CMZ File ===
  
-  - **file -> open** +This step is done to load the data for one subject.
-    - select the **sub01_workspace.cmz** file+
  
-==== load the p2d data ====+  - **File -> Open** 
 +    - Select the **Sub01_Workspace.cmz** file
  
-this loads the p2d file which contains the mean and standard deviation for multiple subjects.+=== Load the P2D Data ===
  
-  - **file -> open** +This loads the P2D file which contains the mean and standard deviation for multiple subjects.
-    - select the **normal_data_individual_right_and_left.vnd** file+
  
-**note:** the workspace tab does not display the normal database as being open at this timethis is because the normal data is simply stored as signals in the global workspace. the global signals, however, have been loaded and can be seen by selecting global as the active file.+  - **File -> Open** 
 +    - Select the **Normal_Data_Individual_Right_and_Left.vnd** file
  
-==== quickly view the p2d data ====+**Note:** The Workspace tab does not display the Normal Database as being open at this time. This is because the normal data is simply stored as signals in the Global Workspace. The Global signals, however, have been loaded and can be seen by selecting GLOBAL as the active file.
  
-**this step is just to familiarize yourself with the p2d file format.**+=== Quickly View the P2D Data ===
  
-|in the signals and events tab:\\ \\ - set the active file to global\\ \\   - expand p2d\\   - expand processed\\   - left click on the signal lankleangle_x_lhs_lhs\\ \\ - note that the p2d signal has three components:\\ \\   - the first component is the "frame" signal. there will one frame for each point the signal was normalized to\\   the second component is the average signal at each frame\\   - the third component is the standard deviation at each frame  |  p2d_quickviewgraph.png\\ p2d_quickviewdata.png|+**This step is just to familiarize yourself with the P2D file format.**
  
-==== plotting the p2d data ====+|In the Signals and Events tab:\\ \\ - Set the Active File to GLOBAL\\ \\   - Expand P2D\\   - Expand Processed\\   - Left click on the signal LAnkleAngle_X_LHS_LHS\\ \\ - Note that the P2D signal has three components:\\ \\   - The first component is the "frame" signal. There will one frame for each point the signal was normalized to\\   - The second component is the average signal at each frame\\   - The third component is the standard deviation at each frame  |  {{:P2D_QuickViewGraph.png}}\\ {{:P2D_QuickViewData.png}}|
  
-|in the reports tab:\\ \\ - add a new line to a graph\\ - tag to graph: **global**\\ - **x axis data**\\ \\   - type: **p2d**\\   - folder: **processed**\\   - name: **lankleangle_x_lhs_lhs**\\   - component: **1**\\ - **y axis data**\\ \\   - type: **p2d**\\   - folder: **processed**\\   - name: **lankleangle_x_lhs_lhs**\\   - component: **2**\\   - check **"add standard deviation"**\\ \\     - component: **3**\\ - p2d line style: **solid**\\ - p2d color: **black**\\ - std dev style: **solid**  |  p2d_graphdialog.png|+=== Plotting the P2D Data ===
  
-|if everything is correct, you should see the data for the data in the cmz (green lines) and the average data is shown in black. the solid black line is the mean and the gray band is the standard deviation.  |  p2d_2dgraph.png|+|In the Reports Tab:\\ \\ - Add a new line to a graph\\ - Tag to Graph: **GLOBAL**\\ - **X Axis Data**\\ \\   - Type: **P2D**\\   - Folder: **PROCESSED**\\   - Name: **LAnkleAngle_X_LHS_LHS**\\   - Component: **1**\\ - **Y Axis Data**\\ \\   - Type: **P2D**\\   - Folder: **PROCESSED**\\   - Name: **LAnkleAngle_X_LHS_LHS**\\   - Component: **2**\\   - Check **"Add Standard Deviation"**\\ \\     - Component: **3**\\ - P2D Line Style: **Solid**\\ - P2D Color: **Black**\\ - Std Dev Style: **Solid**  |  {{:P2D_GraphDialog.png}}|
  
-**note:** if you open the report_template_p2d.rgt report template, you will notice that the p2d signals were plotted for the first page.+|If everything is correct, you should see the data for the data in the CMZ (green lines) and the average data is shown in black. The solid black line is the mean and the gray band is the standard deviation.  |  {{:P2D_2DGraph.png}}| 
 + 
 +**NOTE:** If you open the Report_Template_P2D.rgt report template, you will notice that the P2D signals were plotted for the first page. 
 + 
 +==== Computing a Time Normalized Average Event ====
  
-===== computing a time normalized average event ===== 
  
  
-}}}}}}}} 
visual3d/documentation/reports/plotting_p2d_data.1718801614.txt.gz · Last modified: 2024/06/19 12:53 by sgranger