Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RM_raincloud_Plot (Matlab) #59

Open
MarkKramer opened this issue Feb 11, 2022 · 1 comment
Open

RM_raincloud_Plot (Matlab) #59

MarkKramer opened this issue Feb 11, 2022 · 1 comment

Comments

@MarkKramer
Copy link

Thank you for a great resource.

For some reason the rm_raincloud.m code does not want to plot my repeated measures? My data consists of 15 participants performing landing tasks in 5 different directions (the repeated measures), on 2 separate occasions (the "groups"). my datafile (DF) therefore consists of a 150x3 matrix (see attached file). I have then implemented the code as per the tutorial (see below):

% Get the repeated measures data
DF = readmatrix(fullpath{1});

i = [];
j = [];
data = [];

% read into cell array of the appropriate dimensions
for i = 1:5 % number of repeated measures
for j = 1:2 % number of groups
data{i, j} = DF(DF(:, 2) == i & DF(:, 3) ==j);
end
end

% make figure
f9 = figure('Position', fig_position);
h = rm_raincloud(data, cl);
set(gca, 'YLim', [-0.3 1.6]);
title('Repeated measures raincloud plot');

The plot however consists only of the 5th landing task, none of the other landing tasks are plotted. What am I doing wrong?

Kind regards,

Mark
Med_lat_V1.csv

@MarkKramer MarkKramer changed the title RM_raincloud_Plot RM_raincloud_Plot (Matlab) Feb 11, 2022
@MarkKramer
Copy link
Author

The issue appears to be due to the "YLim" line of code. If I block this out then the code works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant