How to make a scatter plot where each point is colored according to a given ID and the xlabel ticks are determined by the associated string.
The data I am trying to plot is in an Nx3 table where the label for each columns are ‘Value’, ‘Condition’ and ‘ID’. I want to plot the values in ‘Value’, group them according to ‘Condition’ and color them based on ‘ID’ so something like swarmchart I guess I am trying to do.
To get something to work with, this is an example of how my data could look like. How do I plot this?
Value Condition ID
—————————– —- ——-
0.0608000000000000 ‘B’ "ID 1"
0.0476000000000000 ‘B’ "ID 2"
0.0483000000000000 ‘B’ "ID 3"
0.298800000000000 ‘B’ "ID 4"
0.0377000000000000 ‘B’ "ID 5"The data I am trying to plot is in an Nx3 table where the label for each columns are ‘Value’, ‘Condition’ and ‘ID’. I want to plot the values in ‘Value’, group them according to ‘Condition’ and color them based on ‘ID’ so something like swarmchart I guess I am trying to do.
To get something to work with, this is an example of how my data could look like. How do I plot this?
Value Condition ID
—————————– —- ——-
0.0608000000000000 ‘B’ "ID 1"
0.0476000000000000 ‘B’ "ID 2"
0.0483000000000000 ‘B’ "ID 3"
0.298800000000000 ‘B’ "ID 4"
0.0377000000000000 ‘B’ "ID 5" The data I am trying to plot is in an Nx3 table where the label for each columns are ‘Value’, ‘Condition’ and ‘ID’. I want to plot the values in ‘Value’, group them according to ‘Condition’ and color them based on ‘ID’ so something like swarmchart I guess I am trying to do.
To get something to work with, this is an example of how my data could look like. How do I plot this?
Value Condition ID
—————————– —- ——-
0.0608000000000000 ‘B’ "ID 1"
0.0476000000000000 ‘B’ "ID 2"
0.0483000000000000 ‘B’ "ID 3"
0.298800000000000 ‘B’ "ID 4"
0.0377000000000000 ‘B’ "ID 5" plotting, matlab MATLAB Answers — New Questions