I'm looking for a way in Shiny to allow a user to change the values for (a) and (d) and update the rest of the confusion matrix. The key is that I'd like the text and numbers to appear in this visual format. Is there any way to use a template image and overlay objects that get updated dynamically? A better approach?
We have this so far, but the layout is not ideal.
Related
I need a way to create a kind of custom table in each Wordpress article. The table has some regular data/text (that remains the same) and some input data/text (that needs to be changed for each post). Under this it needs to have 2/3 tabs that can contain some pictures.
What would be the easiest way to achieve this? Is there a plugin or something I can use to create such a table?
Here is how the table looks like.
I'd like to create a multiple rows + multiple columns view.
I think I can either use table or grid.
Which one should I use over another and why?
Summary
Grid
Using a grid makes content appear to flow more naturally on your page.
Table
A standard table.
from Semantic-UI
Explained
Grids
The CSS Grid Layout specification is one of a few new specifications
that are redefining how we approach layout for the web. Alongside
Flexbox and the Box Alignment Module it will become part of a modern
layout system for websites and web applications.
from Grid by Example
Table
Table is just a layout, and could be complex for complex views. Just think in spreadsheets. You can merge columns and rows to get your layout.
Opinion
You can use the option you want, according to your needs. But if you are looking to organize your web content, use grids; If you need to deploy data use tables.
That all depends on the requirement. for example, If you want them to maximize the use of the page; maybe for a report with multiple columns over the whole webpage and you knew beforehand on what device your page would be rendered then use a table because you can pinpoint each and every column to exact pixels.
But if the rendering device might be any device or the rendering device info is not available then use grid because it would automatically adjust to the available layout space.
I have a question related to the sliderInput in R shiny.
In the sliderInput, the value is a number. Some examples show that the number is $number. However, if I want to show the value of sliderInput as a time, say 10:00, 15:00, how should I do it?
Thanks a lot.
This is a partial answer, giving you some pointers that anyone with some JS knowledge can use. To the best of my knowledge, as of Shiny-0.5, you can achieve this only by writing some Javascript/JQuery.
If you are able to incorporate JQuery plug-ins into your UI.R Shiny app, this link has what you want.
Use CSS style to make sure that the SliderInput labels get formatted the way you want. (Showing Date/Time as opposed to numbers.) I typically put any tags$head() styling code inside SideBarPanel() and it has worked.
You will also need a Javascript function that takes in the input$number and returns a valid date/time. Link with code: This JQuery post has a javascript function that you should be able use (with DatePicker)
Hope that helps.
I am a newbie learning to use graphviz.
Is it possible to generate interactive pop-out annotations when you move cursor around the graph? For example, hovering a node/edge will pop-out message box showing more information about it.
And if so, how?
Thank you so much for the help.
Depending on the output format, there are some possibilities:
You may create a png image and an image map and serve it as a html page. The world of html and javascript offers endless possibilities to make this interactive, use popout messages, etc.
If you prefer svg, some information is already included in the output as <title>, and again, if served within a browser, javascript may prove useful to enrich the output (not sure if it's possible to use existing svg with raphaeljs, but it sure shows nicely what's possible with svg + javascript).
You may simply have graphviz render the positions of all nodes and parse it's output to present it in your custom application
does anyone know how to create a bar/pie graph based on the value from database in ASP? For example, i would to create a graph based on the number of people who went for vacation in certain state..I would like to retrieve the value directly from database..need help..thanks..
You could check out Google Charts.
There are a number of great javascript libraries which can take datasets and convert them into graphs.
canvasgraph
flot
are two of the big ones. The plus of javascript is that the processing is done client side and you don't have to send over images, just JSON.
Dojo also works well, though documentation is a little scarce.
Microsoft's Office Web components (OWC11) also works on the server side, and it's fairly easy to use.
Third option is to use plain old HTML. Works well sometimes if you want a simple chart, like a horizontal bar chart. You can use a table, with div / span tags set to correct widths ad colors for the bars. Free, easy and requires no plugins of any kind to work.