jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
720 stars 149 forks source link

Correlation matrix with Highchart heatmap (hchart.matrix) #86

Closed adymimos closed 8 years ago

adymimos commented 8 years ago

It would be great if you can add a function which gives correlation matrix with highchart heatmap. Is it possible to create one?

jbkunst commented 8 years ago

@adymimos

Obviously this is possible :wink:. I'll put this on the enhancement tag. If you have a mockup code to start from there is very welcome if not the case I'll take some time the next week. I think this wont be hard, we need to reuse https://github.com/jbkunst/highcharter/blob/master/R/hchart.R#L220

4d1in3 commented 8 years ago

I have an implementation highcharts with rCharts. But it is not as good as one with polycharts [http://rcharts.io/viewer/?7073094#.VyAiXrO_vEU]. With highchart color gradient always screws up. Let me try to make an example with dist

adymimos commented 8 years ago

@jbkunst Thanks for the pointer. I was able to implement it.

http://rpubs.com/adymimos/176226

pls let me know if you require this as a new function, I can create a pull request

jbkunst commented 8 years ago

Nice @adymimos :smile: !

Mmm not sure how include this function becuase class(cor(mtcars)) is matrix. Maybe is a good/reasonable alternative if we make heatmaps to chart matrix in the hchart function by default.

Can you make a pull request modifying hchart.R file and creating hchart.matrix(object, ...) function with your code? Are you agree? If you do, modify DESCRIPTION file adding you name as ctb.

Thanks and regards,

jbkunst commented 8 years ago

Closed by @adymimos in #108

jrounds commented 8 years ago

http://rpubs.com/adymimos/176226

In my browser the "-1" in the legend is cut off. Is there anyway to pad it so the -1 doesn't get cut off?

jbkunst commented 8 years ago

Hi @jrounds ,

Sorry for the late reponse.

I think the issue is caused by some options given by @adymimos in the hchart.matrix in the legend option, I removed them so highcharter will use the default ones.

You can check the result here: http://rpubs.com/jbkunst/highcharter-issue-86

Thanks!