Learn R Programming

circularEV (version 0.1.2)

PolarPlotData: Polar plot of circular data

Description

Polar plot of circular data

Usage

PolarPlotData(
  Data,
  drc,
  thr = NULL,
  ylim = NULL,
  pointSize = 1,
  fontSize = 12,
  thrWidth = 4,
  thrColor = "#D45E1A"
)

Value

Polar plot of circular data, possibly including a threshold

Arguments

Data

Response variable

drc

Directional covariate

thr

Threshold values along thetaGrid

ylim

Range of values

pointSize

Size of points (observations)

fontSize

Font size

thrWidth

Threshold width

thrColor

Threshold colour

Examples

Run this code
data(HsSP)
data(drc)

if(requireNamespace("plotly", quietly = TRUE)) {
  PolarPlotData(Data=HsSP, drc=drc, thr=NULL, pointSize=4, fontSize=14,
                thrWidth=4, ylim=c(0,max(HsSP)))

  data(thresholdExampleML) # loads threshold example

  PolarPlotData(Data=HsSP, drc=drc, thr=thresholdExampleML, pointSize=4,
                fontSize=12, thrWidth=4, ylim=c(0,max(HsSP)))
} else {
  message("Skipping PolarPlotData examples because the 'plotly' package is not installed.")
}

Run the code above in your browser using DataLab