public partial class Form1 : Form { private REngine engine; public Form1() { InitializeComponent(); //ライブラリへのパスを用意 var envPath = System.Environment.GetEnvironmentVariable("PATH"); var rBinPath = @"C:\Program Files\R\R-3.1.2\bin\i386"; System.Environment.SetEnvironmentVariable("PATH", envPath + Path.PathSeparator + rBinPath); //Rのインスタンスの作成と初期化 REngine.CreateInstance("RDotNet"); engine = REngine.Get
![R.NETでコンター図を保存するメモ - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/17a10791c64edc4dae381ef9166459a290060ab5/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-1150d8b18a7c15795b701a55ae908f94.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTg0MCZoPTM4MCZ0eHQ2ND1VaTVPUlZUamdhZmpnclBqZzdQamdyX2pnN3psbTdQamdwTGt2NTNsclpqamdabmpnb3ZqZzZIamc2SSZ0eHQtY29sb3I9JTIzMzMzJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTU0JnR4dC1jbGlwPWVsbGlwc2lzJnR4dC1hbGlnbj1jZW50ZXIlMkNtaWRkbGUmcz00ZmNiYmIwOTYxNDcwZjFmNjQ3ZjE5MjU5ZWEyZmE5Yw%26mark-align%3Dcenter%252Cmiddle%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTg0MCZoPTUwMCZ0eHQ2ND1RRk5vYVc1bmIwOXBhMkYzWVEmdHh0LWNvbG9yPSUyMzMzMyZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT00NSZ0eHQtYWxpZ249cmlnaHQlMkNib3R0b20mcz1jODNhOGU5OGQ2ZGE2NWIxY2Y0ZDhiYzc4NmM5ZjBiNQ%26blend-align%3Dcenter%252Cmiddle%26blend-mode%3Dnormal%26s%3Dc73bf8aa951b58ad3e379d720787fdbb)