Richa Koolwal Posted June 7, 2022 Share Posted June 7, 2022 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 More sharing options...
Gaia Paolini Posted June 8, 2022 Share Posted June 8, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now