小编F. *_*zil的帖子

根据值绘制一个变量,仅线和点

我想使用 ggplot2 在同一个图中绘制 3 个时间序列。我想将前 2 个系列绘制为没有点的实线。我想用点而不是线来绘制第三个系列。我怎样才能做到这一点?

library(ggplot2)
library(reshape2)

d1 <- c(1, 2, 3, 2, 1, 2, 3, 4, 5, 6, 5, 4, 3, 1)
d2 <- c(0, 2, 4, 5, 4, 3, 2, 4, 6, 7, 6, 5, 3, 1)
d3 <- c(0, 1, 2, 4, 4, 2, 1, 3, 4, 7, 8, 3, 5, 0)

ts1 <- ts(d1, c(2015, 01), c(2016, 03), frequency = 12)
ts2 <- ts(d2, c(2015, 01), c(2016, 03), frequency = 12)
ts3 <- ts(d3, …
Run Code Online (Sandbox Code Playgroud)

r ggplot2

6
推荐指数
1
解决办法
398
查看次数

NCO:使用NCO ncks从NetCDF文件中提取变量

我试图通过输入以下命令从多变量netcdf文件中提取变量:

ncks -v ta temp1.nc out.nc
Run Code Online (Sandbox Code Playgroud)

但是,然后我查看out.nc标头,所有变量仍然存在。

temp1.nc和out.nc的标头如下:

--- temp1.nc header ---
dimensions:
        time = UNLIMITED ; // (124 currently)
        lon = 256 ;
        bnds = 2 ;
        lat = 128 ;
        lev = 40 ;
variables:
        double time(time) ;
                time:standard_name = "time" ;
                time:long_name = "time" ;
                time:units = "days since 1850-1-1" ;
                time:calendar = "365_day" ;
                time:axis = "T" ;
        double lon(lon) ;
                lon:standard_name = "longitude" ;
                lon:long_name = "longitude" ;
                lon:units = "degrees_east" ;
                lon:axis = "X" …
Run Code Online (Sandbox Code Playgroud)

netcdf nco ncks cdo-climate

3
推荐指数
1
解决办法
3372
查看次数

标签 统计

cdo-climate ×1

ggplot2 ×1

ncks ×1

nco ×1

netcdf ×1

r ×1