How to add open box around the X axis label - r

I am drawing a picture of go annotation result using ggplot2, i want to add three open boxes underneath the X axis label to identify the main classes of go annotation. Is there anyone can help me? The picture just look like that as below.

Related

Scroll/pan ggplotly with title

I use ggplotly in my shiny app and use the layout function for the title. When I want to pan the picture, the title and images stay on the same spot while the plot is moving.
Is there a way to let them move with the plot? I know the pan function is to look at parts of the plotted values, but I also got info in the images and title. Besides that, I want the plot to be a certain size, even on mobile and than I need the plot to be able to scroll.
MRE:
library(ggplot2)
library(plotly)
plot<- ggplot(iris,aes(Sepal.Length,Sepal.Width)) + geom_point()
ggplotly(
plot,tooltip="text")%>%
layout(title = list(hjust= 0.5,text = "Title"))
Adding the title through ggplot doesn't solve this.
EDIT:
I made a scrollable box, which solves it a little bit. I want to use the whole plot to scroll when there is a finger/cursor clicking and moving.
Otherwise an other solution is just setting the aspect ratio of the plot instead of the absolute size. Anyone know something about that?

Labeling shape on plotly js

I've been trying to add different colored shapes to the background of plotly.js. However, I also want to be able to label them somewhere so the user knows what color has what meaning. How can I do that?
The first example on here is basically what I've got so far:
https://plot.ly/javascript/shapes/

Dynamic vertical line in silverlight

How can I build a dynamic vertical line in SiliverLight 5. We are using Visifire charts.
Scenario is like user can plan a future date and that will be mark as a yellow vertical line. And also there can be more than one vertical line.
It should look like this:
It looks like you should be able to use a "TrendLine" to draw vertical lines at whatever position you choose. For a vertical "trend line", just set the "Value" and Orientation properties.

How to Fill in the Area Underneath an ASP.Net Spline Chart Control with a Color?

I have an ASP.Net Chart Control of ChartType "Spline", one ChartArea and one Series (it's a sparkline). I was just wondering if anyone out there knew how I could color the area underneath the line - I can't seem to find the property that allows me to do this without coloring the entire background.
Thanks in advance
You need to have a chart with a ChartType of Area to achieve this type of look (similar to google analytics). I have tried it and it does work although i'm not sure how you might get the line to be one particular colour and the area underneath to be a second colour?
http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/981cc4df-2b23-4557-8d89-0b45d553fecc/

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