Problems with cellnote in heatmaply - r

I'm using heatmaply() to create an interactive heatmap for Shiny. I encounter a few challenges when using cellnote = "some values":
cellnote starts in the center of the relevant tile of the heatmap by default. How to center it? (This is particularly frustrating when numbers start to overlap with the next tile)
How to ensure that the cellnote is not top alligned? (notice it's almost as if the cellnote is placed in the top right of the cell)
How to use a smaller text font (e.g. like notecex in heatmap.2)?
When using cellnote the ability to hover in shiny only exists if you hover on the edges of a tile. It is as if the cellnote is placed on top of the heatmap and blocks some of the area of the tile such that the hover ability does not activate. Is there a fix for this?
For a visual of what I mean regarding cellnote:
Cellnote not centered

1 & 2: Try the cellnote_textposition argument in heatmaply. It adjusts both horizontal and vertical justification.
3: I've created an issue for this. Thanks for pointing it out!
4: This is a known issue and we would hope to resolve it eventually, though it is quite difficult to solve, unfortunately.

Related

How to remove overlap of objects in Adobe Illustrator?

I've tried every option in the Pathfinder tool. No luck there. I have a red bar overtop an icon that has a circle as a background. I'd like to remove the sections of the red bar that overlap the circle. The objects are on the same layer, and I'm selecting the circle and the red bar before I click on the various Pathfinder options.
Any suggestions as to what mistake I'm making? Thanks.enter image description here
Answer noted above:
I figured it out. "Minus Back" in Pathfinder works. The reason I didn't see it when I first chose Minus Back is that I assumed ALL the overlapping sections would be deleted automatically. Minus Back just cuts them into new objects. You have to select them and delete them. Another reason I didn't see the result of the action is that I wasn't zoomed in close enough to notice that MB had cut new paths. It pays to be zoomed in at the overlap when you're using Pathfinder.

Unwanted overlapping text in watch glance

In my watch glance I have selected the following layout in IB:
For some unknown reason the two top labels want to overlap...sometimes. Like this:
My understanding is that it shouldn't be possible to overlap labels using watchkit. Any idea of how to solve this problem?
I have often found that when labels are not in a Group container, the layout can be unpredictable. I would recommend placing the two top labels in a Group and then make the first Vertical Position Top and the second Vertical Position Bottom. Also be sure to set both labels to use "size to fit content."

Positioning ZedGraph legend at middle right not top right?

Is there some way to position the legend using ZedGraph so that it is on the right-hand side, but vertically centred. Using:
output.Legend.Position = ZedGraph.LegendPos.Right
positions the legend at the top right, but beside a pie chart this looks misaligned. Is there a way to get the legend to vertically centre?
Changing output.Legend.Location.Y seems to have no effect, nor does trying output.Legend.Location.AlignV = ZedGraph.AlignV.Center
Added in response to first answer below...
Floating, reducing the chart size and positioning the label does centre vertically, and is better than I had managed previously. Unfortunately it has a side-effect, in that the legend switches to multi-column and tries to occupy half the width of the total chart area, thus usually overlapping the chart (see picture). Looking at the ZedGraph source, this wider mode is used for all layouts except Left and Right.
Location is only enabled when Legend.Position is set to Float.
You could do like this (C#):
output.Legend.Position = LegendPos.Float;
output.Legend.Location =
new Location(1.05f, 0.5f, CoordType.ChartFraction, AlignH.Right, AlignV.Center);
with the probably undesired "feature" that the legend is drawn partially inside the chart:
To workaround this issue I believe you also have to manually resize your chart:
output.Chart.Rect = new RectangleF(xstart, ystart, xsize, ysize);
Anders' answer nearly worked, except it had the side-effect of changing the width of the legend. This led me to download the source code to find out why, and I discovered that the legend positioning code is actually quite trivial. LegendPos.Right is only referenced twice in the code, both times in Legend.CalcRect
Adding a new LegendPos.MiddleRight only needs it added to the enum, a case for MiddleRight added to the first Switch which runs the same code as Right. And in the second Switch in CalcRect the following:
case LegendPos.MiddleRight:
newRect.X = clientRect.Right - totLegWidth;
newRect.Y = tChartRect.Top + tChartRect.Height / 2 - totLegHeight / 2;
tChartRect.Width -= totLegWidth + gapPix;
break;
This is the same code as for LegendPos.Right except for the newRect.Y line.

Omit footer and centralise Motion Chart created with googleVis R package

It's a general question, not one related to any specific chart; hence I'm not adding any code.
It seems there isn't a "footer" option you can use to control how the motion chart appears, in a similar vein as there are options to control for width, colours, omit the right-hand menus, etc.
Also, how can I present the chart centralised on the page rather than starting from the top left-hand corner?
Regards,
José
Trend Compass is a new concept in viewing statistics and trends in an animated way by displaying in one chart 5 axis (X, Y, Time, Bubble size & Bubble color) instead of just the traditional X and Y axis. It could be used in analysis, research, presentation etc.
Link on UK Master Card vs Visa performance:
http://www.epicsyst.com/test/v2/mastercard_vs_visa/
Link showing Drilling feature (Parent/Child) - Just double-click on any bubble:
http://www.epicsyst.com/test/v2/drilling/

Flex - Placement of Legend for a chart

I would like to be able to specify the placement of a legend for a linechart. Currently, it continues to appear to the right of the chart. I have tried playing with the width/height of the chart to no avail... Putting the legend before the linechart in the mxml causes it to appear to the left. I can't seem to get it appear at the bottom though. I can't seem to find any good examples for this. They don't seem to specify anything but the legend usually shows up below the chart, I can't seem to do it. Optionally, it would be okay to somehow minimize the legend..
what container are your line chart and legend in? its sounds like you are using either an HBox or an application with the layout="horizontal". To move the legend below use either a VBox or application layout of vertical. Or you can use a canvas and use constraints (left, right, top, bottom) or x and y coordinates

Resources