I would like to be able to select and copy the hover text in plotly graphs. Is that possible with the R API?
For example, in this heatmap, upon mousing over coordinates (X=a, Y=d), one can see the hover text displaying:
x=a,
y=d,
z=0.71886
However, the text is not selectable. The goal would be to e.g. display this text inside a box (perhaps by right-clicking on the corresponding cell) to be able to copy the text contents into the clipboard.
Any help would be greatly appreciated.
Related
Is there a way to read the text of a slide from Powerpoint and then replace a part of the text with a value from R. See image 1, the black text is added by an user, and the red text is written by the R notebook.
I want to do the writing part in Powerpoint, I don't want to add the whole text in R. Otherwise it is impossible for people without R to add text to the Powerpoint.
If there is a way to define a variable in Powerpoint (that can be placed inside a textbox), that would also solve the problem. :)
Example text
I prepare a document in Markdown in which I have to highlight changes in color. I am aware that I could wrap the text like this:
This text is unchanged, however \textcolor{red}{I changed this}, before going back to the original color.
But I would prefer to define my own command, similar to the **<this is bold text>** solution, without all the brackets. I found the following solution to make all bold text also blue, but since I am new to latex I have been unsuccessful trying to adapt this. I found out how to change the textcolor after a custom command for the rest of the document by including this at the beginning of my Markdown document:
\newcommand{\x}{\color{red}}
Like this, the text color switches to red after I write \x somewhere in the text. The next step would be along these lines:
\newcommand{\x}{%
\ifthenelse{\equal{\color}{black}}% if the text color is currently black
{\color{red}}% set it to red
{\color{black}% else set it back to black}}
I want this custom command to check the current text color. Like this, I could ideally have some unchanged text and \x wrap the changed section in the custom command, making this red \x, before going back to the original color.
Does anyone have an idea how I could write this in Latex? Any help appreciated!
Using a similar approach as in https://stackoverflow.com/a/52390056 , you could change the behaviour of **...** to give red text instead of bold:
\renewcommand\textbf[1]{\textcolor{red}{#1}}
I would like to draw a simple flowchart in R. As shown in the example below, I would like to be able to determine:
the shape of the boxes
the color of the boxes
the position of the boxes
the text within the boxes
the direction of the arrows between the boxes
the text beside the boxes
There are several packages, that are able to draw such a flowchart (e.g. DiagrammeR). However, I am wondering if this is possible with ggplot2, since I would like to use the ggplot2 themes etc.
I print the calculation results in the end of window title text. I want to highlight them. How to change text colour in the title and how can I make background for this text like in last versions of Microsoft Office?
If there's no way without drawing the non-client area myself I'd like to know how to draw the non-client area considering any system options set for windows titles.
I always seem to be having fun working with the Ax 2009 product until I have to touch the now deprecated reporting tool. Today I've been asked to highlight some column titles and a totals area with a grey or shaded background. The *tutorial_ColourLines* report isn't what I need as we do not want to colour the whole report section. We only want to change the background color for labels or better yet, inside a shape.
Thanks
Revisiting the TrucosAx.com link in Spanish I posted in the questions comments, I've obtained an imperfect way of producing the silver backgrounds.
Create a Text object but makes sure it is behind all of the other controls, by moving it up the list of objects in the report section.
Set the new object as having the same dimensions and position as our original column title or label.
Change the original column title background colour.
Change the foreground and background colour of our new text object as well.
Fill the text object's Text property with garbage: OOOOOOOOOOOOOOOOOOOOOOOOOOO etc.
Any better suggestion is most welcome.