inst/doc/V_magnitude_phenometrics.R

## ----setup, include=FALSE-----------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
library(rnpn)

## ----eval=FALSE---------------------------------------------------------------
# npn_download_magnitude_phenometrics(
#   request_source = 'Your Name Here',
#   years = '2018',
#   period_frequency = "7",
#   species_ids = '245',
#   phenophase_ids = '292',
#   download_path = 'MPM_BCC_ActInd_2018.csv'
# )

## ----eval=FALSE---------------------------------------------------------------
# BCC_AI<-read.csv(
#   'MPM_BCC_ActInd_2018.csv',
#   header = TRUE,
#   na=-9999,
#   stringsAsFactors = FALSE
# )
# 
# plot(
#   BCC_AI$proportion_yes_record~as.Date(BCC_AI$start_date,"%Y-%m-%d"),
#   ylab=c("Proportion Yes Records"),
#   xlab=c("Date"),
#   cex=2,
#   cex.axis=1.5,
#   cex.lab=1.5,
#   pch=21,
#   xlim=as.Date(c("2018-01-01", "2018-08-01")),
#   ylim=c(0,1)
# )

## ----echo=FALSE, out.width = "50%", fig.pos="h"-------------------------------
knitr::include_graphics("figures/magnitude-phenometrics.png")

Try the rnpn package in your browser

Any scripts or data that you put into this service are public.

rnpn documentation built on Aug. 25, 2025, 9:52 a.m.