armish / coffeewheel Goto Github PK
View Code? Open in Web Editor NEWD3 Coffee Wheel visualization ported to R via htmlwidgets framework
D3 Coffee Wheel visualization ported to R via htmlwidgets framework
Hi Arman,
There is missing something to get coffeewheel in mainPage. Could you correct me? Thanks
shinyApp(
shinyUI(fluidPage(
mainPanel(
plotOutput('getCoffeewheel')
)
)),
shinyServer(function(input, output, session){
output$getCoffeewheel <- renderPlot({
coffeewheel(sampleWheelData, width=500, height=500, main="Sample Wheel Title", partitionAttribute="value")
})
})
)
Hi,
Is there a way to add a legend for colors?
Thanks
Here is the latest change in htmlwidgets
that causes the problem:
ramnathv/htmlwidgets#28
ramnathv/htmlwidgets#101
here is some more information kindly provided by @happyshows:
#1 (comment)
The current coffeewheel is compatible with htmlwidgets
versions >= 0.2.2
and <= 0.3.2
.
Hi, Fantastic visualization tool! I am pursuing the development of sunburst-type visualization that combines the coffee-wheel interactivity with areas mapped to node values (e.g., counts, time spent) as sunurstR and others do. This way the tool can be used to explore conditional probabilities.
Hi @armish this is a really awesome package and a nice example of html widget.
Are there some way to change the size of each part? something like this image
http://prntscr.com/5nd32u (http://bl.ocks.org/mbostock/4348373)
PD: Happy new year!
HI,
In this screenshot I set in radiobuttons "zoom" for renderCoffeewheel and "static" for renderMetabologram to get the same wheel with legend but when static radioButton is active I get a frozen Coffeewhell: https://drive.google.com/file/d/0B9NOY9eukkEeUFdPYllKby15TlE/view?usp=sharing
Please see bellow the two renders.
maybe a Third issue to download coffeewheel as gif file, can avoid the use of metabologram in my case.
I am trying to save the coffeewheel as gif file. I need maybe ImageMagic...
Thanks
output$getCoffeeWheel <- renderCoffeewheel({
withProgress(message = 'Creating Wheel. Waiting...', value = 0.1, {
Sys.sleep(0.25)
#options(viewer = NULL)
getListProfData()
#Shiny.unbindAll()
CoffeewheelTreeProfData <- reStrDimension(r_data$ListProfData)
#title<- paste("Profiles Data: CNA, Exp, RPPA, miRNA")
coffeewheel(CoffeewheelTreeProfData, width=600, height=600, partitionAttribute="value") # main=title
})
})
output$metabologram <- renderMetabologram({
CoffeewheelTreeData <- reStrDimension(r_data$ListProfData)
#devtools::install_github("armish/metabologram")
#library("metabologram")
title<- paste("Wheel with selected Studies")
metabologram(CoffeewheelTreeData, width=600, height=600, main=title, showLegend = TRUE, fontSize = 12, legendBreaks=c("NA","Min","Negative", "0", "Positive", "Max"), legendColors=c("black","blue","cyan","white","yellow","red") , legendText="Legend")
})
Dear Dr Arman,
I am interesting to use coffeewheel package. Can I set the font size or the police?
Thanks
Karim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.