In the R d3heatmap package, is there a way to rotate the x axis label to be 90 degrees (perpendicular to the axis) instead of 45?
R / d3heatmap - is there a way to rotate the axis label?
939 Views Asked by daj At
1
There are 1 best solutions below
Related Questions in R
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
- Extract series of observations from dataframe for complete sets of data
- Retrieve path of supplementary data file of developed package
- r package development - own function not visible for opencpu
- Label a dataset according to bins of a histogram
- multiply each columns of a matrix by a vector
Related Questions in D3.JS
- Change size of bubble in Scatter Plot for c3.js
- D3 Mouseenter vs Mouseover
- Svg containers not positioning properly
- Bar chart columns not grouping in D3/C3
- Drill down capabality in C3.js
- Changing data sources with zoomable d3 treemap
- Repeat an object with different input data
- d3.js Line Chart Custom x-axis
- D3 Pie Chart with only one part of JSON data
- Prevent click action when dragging a D3 Node
- selecting and using textPath elements in Chrome
- D3.js collapsable tree - visualise set number of levels
- access the array->object -> array values
- How to set a domain on an axis and have the axis intervals not constant or take up different amount of interval spaces using d3
- Detect which type of d3 scale I am working with
Related Questions in SHINY
- Shiny: Reactive boolean variable across functions in server.R
- Leaflet map legend in R Shiny app has doesn't show colors
- Skipping a value between min and max values when using selectInput function in Shiny
- Get selected rows of Rhandsontable
- CDF - GoogleVis command for Cumulative Distribution plot
- R Shiny list2env
- How to pre-select rows in Shiny DT datatables
- Cannot produce ggplot2 in Shiny
- partly upload your input from a file
- Shiny: How to create a table/like user input
- How can I render an rChart in an Rmarkdown shiny document?
- The error when publishing a shiny app
- How to make the horizontal scrollbar visible in DT::datatable
- Selecting single row in shiny using DT
- switch() returns NULL in shiny on unicode characters coming from variable input only
Related Questions in HEATMAP
- How to easily create a heatmap layer from a pre-existing vector layer of points in OpenLayers 3?
- creating a heatplot with ggplot column wise
- How does R heatmap order rows by default?
- Generate Java Swing UI Touch Screen Interaction Heat Maps
- kmeans clustering on the basis of fixed number of variables out of all variables
- Plotting Probability Density Heatmap Over Time in R
- Heatmap.2 color gradient with an additional solid color
- Matplotlib heatmap: Image rotated when heatmap plot over it
- Heat Map Annotation with text
- Plot only one or few rows of a correlation matrix
- Is it possible to build a heatmap from point data at 60 times per second?
- How to customize heatmap color on pre decided constraint values?
- access coordinates heatmap.2 in R
- reformatting x axis as date in a heat map in ggplot
- Error when installing gpclib
Related Questions in D3HEATMAP
- Interactive heatmap changing it rows and columns with animation
- Interaction between html widgets in R shiny
- Remove transparency from d3heatmap
- Drawing dendrogram of time series data in d3heatmap
- darker colours in d3heatmap
- Heatmap Table with multiple colours. plotly.js
- Select columns for reactive heatmap
- D3: slow zoomable heatmap
- Replace index column in dataframe
- Can I use javascript libraries/plugins to create heatmap without a "map" in the background?
- Heatmap using custom predefined colours (d3heatmap?)
- R Shiny ggiraph and d3heatmap Compatibility Issues
- Heatmap color legend with svg gradient not working
- R / d3heatmap - is there a way to rotate the axis label?
- HIghcharts Heatmap as a week timeline
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I couldn't find an easy option to pass a rotation value to the function, but you can go into the innards of the d3heatmap package and change the rotation in the javascript code.
Run ".libPaths()" in R to find where your R packages and their data are stored. In my case I found the d3heatmap package in '/home/nick/R/x86_64-suse-linux-gnu-library/3.1/d3heatmap/'.
The file you are looking for is something like '/home/nick/R/x86_64-suse-linux-gnu-library/3.1/d3heatmap/htmlwidgets/lib/d3heatmapcore/heatmapcore.js'
Open the file with a text editor. There are two places where there is a setting: "rotate(45),translate(6, 0)".
So search for "rotate(45)" and replace "45" with "90" in both places. You'll also have to change "translate(6, 0)" to something that places the text better. I found that "translate(12, -20)" (shifting the text down by 12 pixels and right by 20 pixels) worked well using the "mtcars" dataset as a test.
d3heatmap with vertical row labels
When using datasets with more or less rows, you'll have to play around with the right translation, changing it a bit from -20 so that things align correctly. There is probably a way to do this automatically, but I mostly just know R, not javascript, so I don't know how to do it.