0
誰かが私の問題を助けてくれるかもしれません。RapidminerのRスクリプト
私はRapidMinerで働いているとR-スクリプトオペレータと、次のR-スクリプトで369 X 258出現matixプロセス:プロセスは、エラーメッセージ "で終了し、グラフを作成した後
# rm_main is a mandatory function,
# the number of arguments has to be the number of input ports (can be none)
rm_main = function(data)
{
total_occurrence <- colSums(data)
data_matrix <- as.matrix(data)
co_occurrence <- t(data_matrix) %*% data_matrix
library(igraph)
graph <- graph.adjacency(co_occurrence,
weighted = TRUE,
mode="undirected",
diag = FALSE)
tkplot(graph,
vertex.label=names(data),
vertex.size=total_occurrence*1,
edge.width=E(graph)$weight*1,)
dev.copy (tk_postscript, file= '/home/knecht/r-graph.pdf')
dev.off()
}
をヌルデバイスからコピーできません "。
私の質問は、どうやってポストスクリプトやpngのようなファイルにグラフを印刷できますか?
種類について
トビアス
ありがとう –