简体   繁体   English

如何从C ++调用R的Image函数

[英]How to call R's Image function from C++

How can I call R's image function from C++? 如何从C ++调用R的图像函数?

For example: image(x = M , col = grey(seq(0, 0.7, length = 1000)), axes = FALSE) 例如:image(x = M,col = grey(seq(0,0.7,length = 1000)),轴= FALSE)

where M is a 100x100 matrix in c++. 其中M是c ++中的100x100矩阵。

Thanks 谢谢

Have a look at RInside which lets you embed R inside of C++ applications. 看看RInside ,它使您可以将R嵌入C ++应用程序中。

There are several directories with examples, and plotting is among them. 有几个带有示例的目录,其中包括绘图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM