5
マウスをマウスの上に置くと色が変わるノードを作成しようとしています。R igraphでホバーボタンを作成する
ノードをプロットしてネットワークを生成するためにR(igraph)を使用しました。
次に、cat()を使用してhtmlテンプレートを作成します。
しかし、CSSシートをリンクしてノードの上にあるホバーボタンを作成する方法がわかりません。 <head><link rel="stylesheet" type="text/css" href="mystyle.css"></head>
をご<html>
タグの後に:私が正しく理解していれば
require(igraph)
htmlfile = file.path('~/Dropbox/Cambridge/PhD/ICAR/AIG/Map/html/', "page1.html")
cat("<html><h1>My first HTML page from R</h1>",file = htmlfile)
cat("\n<br>Hello Web World!", append = TRUE, file = htmlfile)
set.seed(1)
E.circuit.2 <- graph_from_literal(1--2:3:4:5, 2--3,3--2, 4--5)
E.circuit.2
coordinates <- layout_with_dh(E.circuit.2)
coordinates
plot(E.circuit.2)
cat('\n<p><img src="map.png", align="center"></p>', append = TRUE, file = htmlfile)
cat("\n</html>", append = TRUE,file = htmlfile)
私はRの基本的な知識がありますが、これはあなたに役立つと思います[RGraphs](http://www.rgraph.net/docs/howto-index.html) – T04435