以下图片代表列联表
以下代码是如何显示列联表:
// Compiler switches:
// Debug Info Optimisation
// DEBUG On Off
// RELEASE Off On
{$IFDEF DBG}
{$D+}
{$O-}
{$ELSE}
{$D-}
{$O+}
{$ENDIF}
这个是如何绘制该表
> svm.video.table2<-table(pred=svm.video.pred2, true= filteredDataFinal$rate)
> svm.video.table2
答案 0 :(得分:0)
adhoc方法将是:
text(x = 0.23, y = 0.55, "10")
text(x = 0.23, y = 0.67, "2")
text(x = 0.64, y = 0.94, "1")
text(x = 0.64, y = 0.45, "9")
text(x = 0.92, y = 0.44, "4")
PS:我生成了数据,使您的示例可以使用svm.video.table2 <- as.table(matrix(c(10, 1, 0, 2, 9, 0, 0, 0, 4), ncol = 3))