scatterplot: Scatterplot with colored points

Description Usage Arguments Value Author(s) Examples

View source: R/fdbk_asdataframe.R

Description

Scatterplot with colored points

Usage

1
2
scatterplot(x, y, z, zlim = NULL, ncol = 10, cpal = c("red", "white",
  "blue"), ...)

Arguments

x

numeric vector

y

numeric vector

z

numeric vector

zlim

plot color range (default z range)

ncol

number of colors (default 10)

cpal

color palette (default red,white,blue)

Value

a plot

Author(s)

Felix <[email protected]>

Examples

1
2
3
4
5
condition  = list(obs="!is.na(obs)",level="level%in%c(921)",statid="statid=='METOP-1   '",veri_forecast_time="veri_forecast_time==0",veri_run_type="veri_run_type==3",veri_ens_member="veri_ens_member==-1")
DT         = fdbk_dt_multi_large("~/examplesRfdbk/example_monRad/monRAD_2014092406.nc",condition,vars=c("obs","lon","lat"),cores=1)
x11(width=12,height=7.5)
DT[,scatterplot(lon,lat,obs,pch=20,cpal=tim.colors(),ncol=20,cex=.5)]
world(add=T,col="gray",fill=T)

rfxf/Rfdbk documentation built on Dec. 17, 2018, 9:14 a.m.