Skip to content

A multitude of questions using violinplot #59

@EitNickS

Description

@EitNickS

First, I'd like to say thank you @bastibe for such fantastic code, with this I can visualize some very neat tendencies in cells.

However, I have a three questions regarding the visualization of this code. Please see the attached google drive link for screenshot, and .mat files to help you recreate this figure: https://drive.google.com/drive/folders/1YVO8TfBp95419H410nwd54tnPrHMVAXY?usp=sharing

Below is the screenshot by itself. The code is simple:

hold on
yyaxis left
violinplot(thisData,catnames_labels,'ViolinAlpha', {0.3 0.3}, 'HalfViolin','left', 'ShowMedian', true, 'QuartileStyle','shadow', 'DataStyle', 'scatter', 'MarkerSize', 16);
ylabel('t_{1/2} (seconds)', 'fontsize',...
20, 'Interpreter', 'tex')

yyaxis right
violinplot(thatData,catnames_labels,'ViolinAlpha', {0.3 0.3}, 'HalfViolin','right', 'ShowMedian', true, 'QuartileStyle','shadow', 'DataStyle', 'scatter', 'MarkerSize', 16);
ylim([0, 2.5])
ylabel('Normalized Fluorescence Intensity', 'fontsize',...
20, 'Interpreter', 'tex')
hold off

Screen Shot 2022-12-09 at 1 40 05 PM

  1. Why do the marked quartiles for either half of each violin plot show as diagonal lines? I would think that the quartile's end point would be a single number such as 35, making the line have a slope of 0 @ y=35.

  2. Additionally, while I saw that you showed an offset using the Violin function, and not violinplot, I could not get violin to work, as I would get an error code of incorrect data type, bracketed data is not supported (but even using the example MPG, Origin would result in the same error using Violin). I also couldn't get Violin to plot more than one graph at a time, whereas violinplot was significantly easier to use. So, I was wondering, is there a way to fudge a tiny spacing in violinplot to get a small gap between each half, to be able to look at the data with a finer tooth comb?

  3. The last thing is there appears to be unique marker types surrounding each of the plots, but I'm not sure why those exterior triangles are being plotted (the middle of the 3 has the most prominent markers), and I am not sure what it signifies other than the outer boundary. If all it is is the outer boundaries, can we remove these specific marker types?

Thanks,

Nick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions