gridlines

Adding grid lines to a ggplot independent of axis breaks

吃可爱长大的小学妹 提交于 2019-12-11 23:50:35
问题 I have data on abundance over a sequence of nucleotides (ordered character sequence of A, T, C, and G) by two different categories. I want to use ggplot to show the coverage as a line plot over the sequence. I've gotten reasonably far and have just a few more hurdles to jump. Sample data: > dput(so.sample) structure(list(`1_mes_wt` = c(0, 0, 4.25897346349789, 10.0666645500859, 10.0666645500859, 48.3974257215669, 78.2102399660521, 250.698665237717, 250.698665237717, 268.702507606139, 271

Control visual styles of individual gridlines

我的梦境 提交于 2019-12-11 11:49:29
问题 I have a c# RangeBar chart with about 25 labels on the AxisX. Depending on my live data, some of these labels have visible data points in the chart. Typically about 3/4 of the 25 labels don't have any data points. All horizontal gridlines are enabled, which makes the chart a bit cluttered. Especially for data points that are further away on the AxisY, it's difficult to distinguish at a glance to what label on the AxisX they belong. My idea is to differentiate the AxisX labels that have

How can I get a Grid to draw Borders for blank cells?

情到浓时终转凉″ 提交于 2019-12-11 07:10:26
问题 I have an ItemsControl which uses a Grid as the ItemsPanelTemplate , and sets the Grid.Column and Grid.Row on the ItemContainerStyle to position data items in the grid Is there a way to either add GridLines to the Grid, or to fill in the blank cells with a Border? Right now I have ShowGridLines set to True which makes the dotted lines, however I want Horizontal lines to show up, and I'd prefer solid GridLines There is a rather large amount of XAML, but here's a screenshot of how my XAML is

Add grid lines to minor breaks only (ggplot)

血红的双手。 提交于 2019-12-10 21:15:43
问题 I was trying to make a chart as the below in ggplot . I wanted the y labels to show the entire set of values from 1 to 50 but I only wanted to generate horizontal gridlines every 10 numbers. I thought adding minor_breaks and then controlling the theme would work. However, setting the major grid lines to element_blank seems to be overriding the minor gridlines as well. I found some questions here where people have asked about adding more gridlines than labels, but I want the reverse. How can I

Theme manipulation in ggplot2: altering x and y grid lines

时间秒杀一切 提交于 2019-12-10 15:54:24
问题 Is it possible to manipulate the spacing and size of dashed and dotted grid lines in ggplot using the themes? The following plot: p + l + opts(panel.grid.major = theme_line(colour = 'black', linetype = 'dashed'), panel.grid.minor = theme_line(colour = NA), panel.background = theme_rect(colour = 'white')) I'd like to change the spacing (such as in Illustrator) between dashed and dotted grid lines. Additionally, does anyone know if the x-axis and y-axis grid lines can be manipulated separately?

NSTableView get rid blank space separating columns

主宰稳场 提交于 2019-12-08 21:11:04
问题 I have an NSTableView with 4 columns. I also have a custom background color for each row. The only problem is I have these ugly white spaces where the gridlines would go in both the horizontal and vertical axis. I have both unchecked in IB, but they still show up. How can I get rid of the vertical ones and change the color and size of the horizontal ones? Here's what I see: alt text http://img815.imageshack.us/img815/9030/homex.png 回答1: To get rid of vertical spaces but keep the horizontal

Gridlines not showing up

↘锁芯ラ 提交于 2019-12-08 11:29:46
问题 I've set up the following code to read in a .graphml file, preform a calculation (eigenvalues) and then plot the results. Here is the code I have so far: import numpy as np import networkx as nx import matplotlib.pyplot as plt # Read in the Data G = nx.read_graphml("/home/user/DropBox_External_Datasets/JHU_Human_Brain/cat_brain_1.graphml") nx.draw(G) plt.savefig("test_graph.png") Z = nx.to_numpy_matrix(G) # Get Eigenvalues and Eigenvectors # ---------------------------------------------------

Special Gridline Style for Only One Column

倾然丶 夕夏残阳落幕 提交于 2019-12-08 03:46:55
问题 How would I set a custom grid line style on just one column of a DataGrid? In particular, I'd like one column to have a double line as its left border. Example: | Col1 | Col2 || Col3 (w/ Double Left Border) | Thank you, Ben 回答1: It depends on where you want this double line. The vertical GridLines is drawn in OnRender for DataGridCell and the horizontal GridLines is drawn in OnRender for DataGridCellsPresenter . The border for the DataGridColumnHeader is more complicated however. It's a

R matrix plot with colour threshold and grid

放肆的年华 提交于 2019-12-07 09:23:11
问题 my matrix consists of values between 0 and 100 and has the dimensions of 100 x 100. I basically want to plot this matrix but colour all values above 50 in e.g. red and below in e.g. blue. On top of that I'd like to add a nice grayisch grid like they do it here with ggplot: http://learnr.wordpress.com/2009/07/15/ggplot2-version-of-figures-in-lattice-multivariate-data-visualization-with-r-part-5/ I am wondering what's the easiest way to achieve that? I am not sure if I want to give ggplot a try

Reduce number of gridlines in plotly scatter plots with log scale in R shiny

不羁岁月 提交于 2019-12-06 14:13:16
I've build the following test app where I solve the issue to get the tick labels as scientific annotation, but I would now like to reduce the number of grid lines to only be placed at the "main" ticks, i.e. the ones that have a text label. This question was posted based on discussion / comment on this previous SO question I would like to find a way that works for both 2D and 3D plotly scatter plots since I am using both. Here is the 3D app. library(shiny) library(plotly) shinyApp( ui = fluidPage( plotlyOutput('plot') ), server = function(input, output) { output$plot <- renderPlotly ({ mtcars <