search for: gridgraphics

Displaying 13 results from an estimated 13 matches for "gridgraphics".

2018 May 18
0
drc, ggplot2, and gridExtra
.... It does work with > qplot() from 'ggplot2'. Unfortunately, qplot() doesn't know how to > deal with data of class drc. > > I'm at a loss on how to proceed here. Any thoughts? > Hi, If you grab the plots as grobs, you can arrange them using grid.arrange() library(gridGraphics) library(gridExtra) grab <- function{ grid.echo() grid.grab() } x <- rnorm(100, 1, 2) y <- rnorm(100, 0, 0.5) plot(x,y) p <- grab() a <- rnorm(20, 0, 1) b <- rnorm(20, 1, 2) plot(a, b) q <- grab() grid.arrange(p, q) Best, Eivind K. Dovik Bergen, NO > __________...
2017 Jul 23
0
par(mfrow) for heatmap plots
The answer is "don't do that" because that function abuses par. Use lattice or ggplot2 with grid graphics to plot multiple heatmaps. https://stackoverflow.com/questions/15114347/to-display-two-heatmaps-in-same-pdf-side-by-side-in-r -- Sent from my phone. Please excuse my brevity. On July 23, 2017 5:11:32 AM PDT, Brian Smith <bsmith030465 at gmail.com> wrote: >Hi, >
2018 May 18
3
drc, ggplot2, and gridExtra
I have dose response data I have analyzed with the 'drc' package. Using plot() works great. I want to arrange my plots and source data on a single page. I think 'gridExtra' is the usual package for this. I could use plot() and par(mfrow=...), but then I can't put the source data table on the page. gridExtra provides grid.table() which makes nice graphical tables. It
2018 May 21
0
draw borders of bars inside of the rectangles in a barplot
I recommend instead of no border, that you use a border with the same color as the fill. I do this in the likert functions in the HH package. Rich On Mon, May 21, 2018 at 10:59 AM, Martin Batholdy via R-help <r-help at r-project.org> wrote: > Dear R-users, > > I want to draw a barplot with beside=TRUE. > One halve of the bars are drawn with a border, while the other halve are
2015 May 18
4
How best to get around shadowing of executables by system()'s prepending of directories to Windows' PATH?
...he prepending of those extra directories, to give Windows users full control of the path seen by system(). Would adding such an argument have undesirable ramifications?) Motivation and reproducible example: I'm motivated here by a desire to use the function plotdiff() from Paul Murrell's gridGraphics package on my Windows laptop. Getting that to work will require a few code fixes, of which the masking of ImageMagick's convert.exe by that in the C:/Windows/System32 seems to be the most challenging. plotdiff() relies on system2() calls to ImageMagick's 'convert' function, as wel...
2017 Jul 23
3
par(mfrow) for heatmap plots
Hi, I was trying to use par(mfrow) to put 4 heatmaps on a single page. However, I get one plot per page and not one page with 4 plots. What should I modify? Test code is given below: test = matrix(rnorm(60), 20, 3) pdf(file='test.pdf',width=10,height=8) par(mfrow=c(2,2)) heatmap(test) heatmap(test) heatmap(test) heatmap(test) dev.off() thanks! [[alternative HTML version deleted]]
2018 May 21
3
draw borders of bars inside of the rectangles in a barplot
Dear R-users, I want to draw a barplot with beside=TRUE. One halve of the bars are drawn with a border, while the other halve are drawn without a border (i.e. filled bars vs. non-filled bars next to each other). Because borders are drawn around the bars, doing this leads to one halve of the bars being wider than the other halve, expanding across the 0-point of the y-axis. This problem emerges
2023 Mar 07
1
insert hyperlink into svg graphic
This was actually the first thing that ChatGPT debugged for me. The issue was that I was able to click on the link when I displayed the raw SVG in the browser (you can use that to test whether the syntax is even correct), but not when the svg displays inside a html page with the <img ...> tag. ChatGPT correctly identified the issue and suggested a solution using <object ...> tags
2015 May 18
0
How best to get around shadowing of executables by system()'s prepending of directories to Windows' PATH?
...ies, to give > Windows users full control of the path seen by system(). Would adding > such an argument have undesirable ramifications?) > > > Motivation and reproducible example: > > I'm motivated here by a desire to use the function plotdiff() from > Paul Murrell's gridGraphics package on my Windows laptop. Getting > that to work will require a few code fixes, of which the masking of > ImageMagick's convert.exe by that in the C:/Windows/System32 seems to > be the most challenging. plotdiff() relies on system2() calls to > ImageMagick's 'convert...
2019 Mar 15
1
Could we make filled.contour() more suitable for PDF viewers?
Note that I sent this to r-devel, yesterday. However, it didn't appear on the mailing list. So, I'm resending it. Today, I plotted the following: > filled.contour (,,z, color.palette=terrain.colors) It looked OK, in R. However, when I created a PDF document, the plot (and other similar plots) had grid (and other) lines in it, that shouldn't be there. Note that this problem is more
2024 Feb 22
1
Extracting Plot Arguments
Hi All, I'm building an autograding framework for my biostatistics class this semester, and I am exploring different ways to automatically grade figures. In other classes, I teach ggplot2 and I extract information directly from the ggplot2 object. However, in this class we are using base R and I need to extract information from base-r graphics. I've tried several different approaches,
2018 Feb 13
3
Suppress horizontal mean line in beanplot()
Hi, I would like to use the beanplot() function from the beanplot package. Unfortunately, I can't find out how to suppress the dashed horizontal line, that shows the overall mean. In the help I've found the argument "overallline", but it only allows for "mean" or "median" . I have tried overallline = F, overallline="n", and
2018 May 31
2
How to alpha entire plot?
I have two chromatograms I want plotted on the same axes. I would like the plots to be transparent, so the first chart is not obscured. I have tried adjustcolor(..., alpha.f=0.3), the problem is that my chromatogram is so dense with datapoints that they overlap and the entire graph just ends up a solid color. The second histogram still obscures the first. Consider this example: col1 <-