datastorm-open / rAmCharts

API for Amcharts
48 stars 17 forks source link

some issue with the input type for mainSize parameter #13

Closed happyshows closed 8 years ago

happyshows commented 8 years ago

Hi,

I was trying to make this parameter dynamic by changing it with the # of axis on radar map

fontSize <- max(as.integer(16 / (log(nrow(dat))+1)),8L)
amRadar(dat, mainSize = fontSize,legend = FALSE)

But somehow it throws an error below Error in amRadar(dat, mainSize = fontSize) : mainSize must be a numeric or double

happyshows commented 8 years ago

It seems to take fontSize <- 10 but not fontSize <- 10L

TitouanRobert commented 8 years ago

Hi, I have update function, it works now. Regards