Jump to content

How can I draw Windroses using Open-air R package in spotfire


Richa Koolwal

Recommended Posts

How can I draw Windroses using Open-air R package in spotfire

I tried to write a data function with following script, but it is returing no graphics. Any help is much appreciated.

 

library(openair)

library(RinR)

library(ggplot2)

pushPATH("C:\Program Files\R\R-4.2.0\bin")

graph

Link to comment
Share on other sites

This works (I loaded the mydata dataset from the example)

What I modified:

- typo: windRose not windrose

- the RinR executes in R, so you need to tell RinR that you want to load openair in R not in TERR (packages entry). So I also removed library(openair) and ggplot, not needed in TERR.

- the call to windRose can be written as if it were in R, but you need to add data='mydata' to instruct RinR

Then you create the binary property graph which you can display as a label in a text area.

 

library(RinR)

pushPATH("C:\Program Files\R\R-4.2.0\bin")

graph

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...