data('votB')
#K = 2
ex1 <- lba(parties ~ city,
data=votB,
K = 2)
plotlba(ex1)
#It's very simple. With colors!
plotlba(ex1,
col.points = 1:6,
col.lines = 1:6)
#Add title in plot!
plotlba(ex1,
main='Mixing parameters')
#Change budget proportion!
plotlba(ex1,
pch.budget = 23,
col.budget = 9,
colline.budget = 8,
lwd.budget = 2,
lty.budget = 2)
#A little more!
plotlba(ex1,
xlab = 'Lb2 -> Lb1',
height.line = rep(0.5,6),
lty.lines = 2,
args.legend = list(ncol=3))
if (FALSE) {
#K = 3
data(MANHATAN)
tbm <- xtabs(value ~ socecon+health,
MANHATAN)
ex2 <- lba(tbm,
K = 3)
plotlba(ex2)
#A little more!
plotlba(ex2,
labels.points = rownames(tbm),
col.points = 2:7,
args.legend = list(plot=F))
plotlba(ex2,
col.points = 3:8,
col.budget = 2,
pch.budget = 20,
lty.budget = 2,
lwd.budget = 3,
colline.budget = 3,
axis.labels = c('Lba1','Lba2','Lba3'))
}
Run the code above in your browser using DataLab