how to plot ternary with data base on their probability?

I want to have a ternary plot same as this
i wrote this but it is not like as the above
[h,hg,htick]=terplot;
%-- Plot the data ...
hter1=ternplot(BBr(1:125), FFe(1:125), CCa(1:125));
hold on
hter2=ternplot(BBr(126:859), FFe(126:859), CCa(126:859));
%-- ... and modify the symbol:
set(hter1,'marker','o','markerfacecolor','red','markersize',6)
set(hter2,'marker','+','markerfacecolor','blue','markersize',6)
hlabels=terlabel('Br','Fe','Ca');
title('A')

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!