使用HttpServletResponse发送.json文件

问题描述

我有一个.json文件,我想根据Servlet的shape方法内的特定请求发送给 client 浏览器。我的Java文件IO有点生锈,因此我很难确定执行此操作的正确方法。我认为这就像:

library(ggplot2)

ggplot(ch4.data,aes(x=date,y=value)) +
  geom_line(aes(color=type)) +
  geom_point(aes(shape=type,fill=type),color = "black",size=4) +
  scale_shape_manual(name = "type",values = c(21:23)) +
  scale_fill_manual(name = "type",values = c("darkorchid3","indianred3","dodgerblue3")) +
  scale_color_manual(name = "type","dodgerblue3")) +
  annotate("rect",xmin=as.POSIXct("2017-11-09"),xmax=as.POSIXct("2018-04-09"),ymin=0,ymax=75,alpha=.25) +
  scale_y_continuous(sec.axis = sec_axis(~.,name = expression(paste('Methane (',mu,'M)')))) +
  labs(y = expression(paste('Methane (','M)')),x = "",color = "",shape = "") +
  theme_linedraw(base_size = 18) +
  #theme(legend.position = "none") +
  theme(panel.grid.major = element_blank(),panel.grid.minor = element_blank(),strip.text = element_text(face = "bold")) +
  theme(axis.text = element_text(angle = 45,hjust = 1))

或类似的东西?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)