You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
load fisheriris.mat;
x = meas(:,1);
y = meas(:,2);
scatterhist(x,y);
load fisheriris.mat;
x = meas(:,1);
y = meas(:,2);
scatterhist(x,y,'Group',species,'Kernel','on');
load fisheriris.mat;
x = meas(:,1);
y = meas(:,2);
scatterhist(x,y,'Group',species,'Kernel','on','Location','SouthEast',...
'Direction','out','Color','kbr','LineStyle',{'-','-.',':'},...
'LineWidth',[2,2,2],'Marker','+od','MarkerSize',[4,5,6]);
load fisheriris.mat;
x = meas(:,1);
y = meas(:,2);
h = scatterhist(x,y,'Group',species);
hold on;
clr = get(h(1),'colororder');
boxplot(h(2),x,species,'orientation','horizontal',...
'label',{'','',''},'color',clr);
boxplot(h(3),y,species,'orientation','horizontal',...
'label', {'','',''},'color',clr);
set(h(2:3),'XTickLabel','');
view(h(3),[270,90]); % Rotate the Y plot
axis(h(1),'auto'); % Sync axes
hold off;
None of these work properly, first 3 examples only plot scatter plot and not the histogram, the last 2 examples yield an error.
reference: https://uk.mathworks.com/help/stats/scatterhist.html
After it is fixed, please reply with links to chart studio plots, so I can include them in the online documents.
The text was updated successfully, but these errors were encountered: