I want to create some plots using R. Save them as .png or .jpg image in R. And then display the image on the web page.
can you please tell me how to call an R script from c#, asp.net. I have found that R.NET has issues, so I am trying to avoid using it.
Here is my R script:
library(stats)
library(ggplot2)
getwd()
setwd("C:\\Users\\..................")
mydatadata <- read.csv(file = "boxplot_test_data.csv", header = TRUE, sep = ",")
ggplot(mydata, aes(y=Y, x=X, fill=fillFactor)) + geom_boxplot(outlier.color=NA) + geom_point(aes(size=AXI, shape=FA), color="gold", position=position_jitter(width=0.1, height=0))
ggsave("myggplot2.png")