-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathtwitcondvsclust.m
More file actions
49 lines (36 loc) · 1.01 KB
/
twitcondvsclust.m
File metadata and controls
49 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% first load heavytwitterp, or pprheavytwitterp
load ../results/hktwitterpheavy;
k = 1;
% size of cluster
clf;
plot(log10(setsizes(k:length(setsizes))),(conds(k:length(conds)) ),'r+','MarkerSize',5);
hold all;
load ../results/pprtwitterpheavy;
plot(log10(setsizes(k:length(setsizes))),(conds(k:length(conds)) ),'bo','Markersize',5);
xlabel('log10(clustersize)');
ylabel('conductance');
hleg = legend('hk','ppr','Location','Southeast');
xlim([0,5])
ylim([0.1,1]);
%%
hc = get(hleg,'Children');
set_figure_size([3,3]);
print(gcf,strcat('twitcluscond','.eps'),'-depsc2');
%%
clf; hold all;
load hktwitterpheavy;
ksdensity(conds,'support',[0,1])
load pprtwitterpheavy;
ksdensity(conds,'support',[0,1])
xlabel('conductance');
ylabel('density');
set(gca,'YTick',[]);
xlim([0,1])
hline = findobj(gcf,'type','line');
set(hline(1),'Color','b');
set(hline(2),'Color','r');
set(hline(1),'LineStyle','--');
legend('hk','ppr','Location','northwest');
legend boxoff;
set_figure_size([3,1]);
print(gcf,'twitter-cond-density.eps','-depsc2');