Rank: 103 based on 672 downloads (last 30 days) and 9 files submitted
photo

Rob Campbell

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Rob View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Feb 2014 Screenshot shadedErrorBar Creates an attractive shaded error region rather than discrete bars. Author: Rob Campbell plot, error bar, confidence interval, potw, pick of the week 284 11
  • 5.0
5.0 | 14 ratings
17 Oct 2013 Screenshot sigstar - add signifiance stars to bar charts, box plots, etc Add significance bars and asterisks to various plot types Author: Rob Campbell statistics, plotting, pvalue, bar chart, box plot, asterisk 98 13
  • 4.83333
4.8 | 6 ratings
17 Sep 2013 Screenshot notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell statistics, data exploration, plotting, error bars, box plot, potw 146 36
  • 4.71429
4.7 | 16 ratings
11 Jul 2012 Screenshot labelEdgeSubPlots Automatically apply x and y labels to subplots only along the edges. Author: Rob Campbell plotting, label, subplot 24 10
  • 4.66667
4.7 | 3 ratings
15 Aug 2010 Screenshot mat2im Convert 2D matrix to a 3D image matrix as used by the image processing toolbox Author: Rob Campbell image processing, conversion, colormap, ind2rgb 29 7
  • 5.0
5.0 | 5 ratings
Comments and Ratings by Rob View all
Updated File Comments Rating
11 Jul 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell

F4b,

Yes this is possible, but there are two caveats:

1. You first need a criterion of your own for determining what defines an outlier.

2. You have to do a *little* extra coding to highlight the points. Here is an example where we highlight the most positive point only. This is the case because I deliberately have avoided adding too many extra features such as this into the function. The idea is to make it easy for others to modify the plots as needed.

Here is a toy example:

clf, H=notBoxPlot(randn(40,5));
hold on

for ii=1:5
y=get(H(ii).data,'YData');
x=get(H(ii).data,'XData');
f=find(y==max(y));
plot(x(f),y(f),'or','markersize',10)
end

hold off

07 Jul 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell

Mathew, what you're asking for is already possible with just one more line of code:

clf,H=notBoxPlot(rand([30,3])); set(H(2).data,'markerfacecolor','g')
set(H(3).data,'markerfacecolor','c')
legend([H.data],'A','B','C') %add legend
set(gca,'XTickLabel',{'A','B','C'})

03 Jul 2014 sigstar - add signifiance stars to bar charts, box plots, etc Add significance bars and asterisks to various plot types Author: Rob Campbell

I don't think I understand. This function is just a way of reporting statistical results that you have already calculated. So it's up to you to do your stats appropriately if your groups have different sizes.

21 May 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell

Example 3.

31 Mar 2014 sigstar - add signifiance stars to bar charts, box plots, etc Add significance bars and asterisks to various plot types Author: Rob Campbell

Look through the examples, it should be clear(ish). You manually choose the x values want and tell it to draw the bar across those positions. This is pretty much the only way of doing it since there's no way for the function to know which locations you want to link. It can't know this because it doesn't know the structure of your data.

Comments and Ratings on Rob's Files View all
Updated File Comment by Comments Rating
11 Jul 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell Campbell, Rob

F4b,

Yes this is possible, but there are two caveats:

1. You first need a criterion of your own for determining what defines an outlier.

2. You have to do a *little* extra coding to highlight the points. Here is an example where we highlight the most positive point only. This is the case because I deliberately have avoided adding too many extra features such as this into the function. The idea is to make it easy for others to modify the plots as needed.

Here is a toy example:

clf, H=notBoxPlot(randn(40,5));
hold on

for ii=1:5
y=get(H(ii).data,'YData');
x=get(H(ii).data,'XData');
f=find(y==max(y));
plot(x(f),y(f),'or','markersize',10)
end

hold off

11 Jul 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell F4b

11 Jul 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell F4b

Hello,
very nice function!

I was wondering if it would be possible to show a label for each point in order to identify which points are outliers.

Thank you very much,
F4b

07 Jul 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell Campbell, Rob

Mathew, what you're asking for is already possible with just one more line of code:

clf,H=notBoxPlot(rand([30,3])); set(H(2).data,'markerfacecolor','g')
set(H(3).data,'markerfacecolor','c')
legend([H.data],'A','B','C') %add legend
set(gca,'XTickLabel',{'A','B','C'})

06 Jul 2014 notBoxPlot - alternative to box plots. This function visualizes raw (grouped) data along with the mean, 95% confidence interval, and 1 SD. Author: Rob Campbell Matthew

This is a great function, but would be even more great if it displayed the legend so that if you plot two groups, the legend corresponds automatically to the markerfacecolor set in the function.

Contact us