similar to: abline() AND rect() do not obey "xpd" (clipping) (PR#750)

Displaying 20 results from an estimated 10000 matches similar to: "abline() AND rect() do not obey "xpd" (clipping) (PR#750)"

2001 Sep 19
1
Bizarre clipping with abline and points (PR#1095)
I want to put some points along the horizontal axis. > plot(1:10, 1:10) > points(4, par("usr")[3], xpd=TRUE) > abline(v=5) works fine for me. But if I try > plot(1:10, 1:10) > abline(v=5) > points(4, par("usr")[3], xpd=TRUE) then the points are clipped. The call to abline seems to be enforcing xpd=FALSE for later calls to the plot. Cheers, Jonathan.
2008 Jun 13
1
adding custom axis to image.plot() and strange clipping behavior
Hi list, I wanted to plot an image with a colorbar to the right of the plot, but set my own axis labels (text rather than numbers) to the image. I have previously accomplished this with two calls to image(), but the package 'fields' has a wrapper function, image.plot(), which does this task conveniently. However, I could not add axes to the original image after a call to image.plot(); I
2008 Feb 22
1
Clipping using par(plt=..., xpd=FALSE) inconsistencies
Here is a demonstration of behaviour that is probably an optimization by someone far smarter than me that did not anticipate anyone wanting to do this, but for my purposes it looks more like a bug than a feature. I have tested this with R2.6.2 on Windows, no additional packages loaded (beyond the default), I have tested using the default graphics object, pdf, jpeg, and cairoDevice (ok I loaded a
2009 Jan 24
2
Is abline misbehaving?
Hi experts, I was graciously offered a function to enhance abline by restricting the extent of the line to less than the plotting region. This seems a useful idea, and it looked like the easiest way to program it was to set up a clipping region with "clip", draw the abline and then restore the previous clipping region. Let us call this function ablineclip. After quite a bit of
2009 Jan 24
2
Is abline misbehaving?
Hi experts, I was graciously offered a function to enhance abline by restricting the extent of the line to less than the plotting region. This seems a useful idea, and it looked like the easiest way to program it was to set up a clipping region with "clip", draw the abline and then restore the previous clipping region. Let us call this function ablineclip. After quite a bit of
2010 Aug 12
3
Median abline how-to ?
Hi, I'm newbie with R and don't really know how to add a median line to each of the groups that is not all the plot long. Here is a small working code that i have adapted for my purpose. If somebody could tell me how to draw median lines on each group and not all plot long. ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <-
2000 Aug 21
2
rect() question.
Hello. I have another rect question. If I want to make a lot of rectangular, without borders, and without any spaces between them, how could I do it? I.e. > plot(-1:1., -1:1., type = "n") > rect(0,-1,1,1,col="red",lwd=0,border=F,xpd=T) > rect(-1,-1,0,1,col="blue",lwd=0,border=F,xpd=T) will produce two rectangular, but there is space between them. How
2001 May 20
2
legend() with xpd=T; omission of initial plot character (PR#943)
In the following: plot(0:1, 0:1) legend(x=0, y=1.2, pch=c(1,2), legend=c("May","June")) the first plot character is omitted when plotting to the screen. I obtained the same behaviour when placing a legend in the margin following use of pairs() -please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = x86 os = Win32 system = x86, Win32
2016 Apr 26
1
ylim in barplot()
Thank you David, That's a nice workaround using plotrix::barp(), but that doesn't explain why ylim doesn't work as intended (or at least, as I expect it to work), or why xpd has no influence when using devEMF::emf()... The problem with saving directly in RStudio is that it requires to manually save the plot, and this becomes troublesome when there are a lot of plot commands in a
2016 Apr 25
0
ylim in barplot()
If you are using a Windows system, you can Export the plot from RStudio and save it as a metafile without using package devEMF and it will crop the bars with xpd=FALSE. When I used devEMF on a Windows machine, the bars were not cropped with barplot() as you indicated, but when I switched to plotrix::barp() they were cropped. The arguments are a bit different, but I did not need xpd=FALSE:
2018 Apr 07
0
Fast tau-estimator line does not appear on the plot
You need to pay attention to the documentation more closely. If you don't know what something means, that is usually a signal that you need to study more... in this case about the difference between an input variable and a design (model) matrix. This is a concept from the standard linear algebra formulation for regression equations. (Note that I have never used RobPer, nor do I regularly
2016 Apr 25
2
ylim in barplot()
Dear useRs, I'm having troubles with using ylim in barplot(): even though I reduce the y-scale using ylim, the bars still extend down to 0into the x-labels. The sample data is below, and here is the code. #This works fine but I would like to plot only from 50 to 70: barplot(t(mydata), beside=TRUE, col=c("orange", "green", "yellow", "purple"),
2011 Apr 29
2
abline outside of plot region
Hi R people. I ran into this problem: I created a plot with errbars, like this: > errbar(x=c(1,2,3,4), y=c(2,1,3,3), yminus=c(1.5,0.5,2.5,2.5), yplus=c(2.5,1.5,3.5,3.5)) Next, I wanted to accentuate some x value with an abline, like this: > abline(v=2) In one of my R sessions (which admittedly I have had open for quite a while now), the abline draws outside of the plotting region
2001 Sep 08
0
barplot forces xpd=TRUE (PR#1088)
<<insert bug report here>> barplot hardcodes xpd as "TRUE" causing the bars to go outside of the plot region. True can be the default, but it shouldn't be the only option. *** barplot.R Sat Sep 8 10:15:16 2001 --- barplot.R.orig Sat Sep 8 10:03:39 2001 *************** *** 5,11 **** legend.text = NULL, beside = FALSE, horiz = FALSE, col =
2012 Sep 14
1
swap hist() colours
Hi, i created a set of graphs and want to find out how to swap the bar colours (from white to black) and set it to be default for all graph that i will produce (f.e. for different number of columns). some sugggestions? thanks in advance. here is an example: ############################## a <-read.table("http://www.scandinavia.sk/data/R/kotlina1.csv", sep=";", header=T)
2018 Apr 06
1
Fast tau-estimator line does not appear on the plot
R-experts, I have fitted many different lines. The fast-tau estimator (yellow line) seems strange to me?because this yellow line is not at all in agreement with the other lines (reverse slope, I mean the yellow line has a positive slope and the other ones have negative slope). Is there something wrong in my R code ? Is it because the Y variable is 1 vector and should be a matrix ? Here is the
2018 Apr 16
0
alpha transparency doesn't work for lines when xpd=TRUE
> On Apr 16, 2018, at 10:41 AM, Jiaxuan Chen <Jiaxuan.Chen at cruk.cam.ac.uk> wrote: > > Dear R-devel, > > I think I've found a bug - the alpha transparency doesn't work when plotting lines with xpd = TRUE. > > #works > plot(1:20, col="#1874CD", xpd=T, type="l") > > #works > plot(1:20, col="#1874CD50", xpd=F,
2018 Apr 16
2
alpha transparency doesn't work for lines when xpd=TRUE
Dear R-devel, I think I've found a bug - the alpha transparency doesn't work when plotting lines with xpd = TRUE. #works plot(1:20, col="#1874CD", xpd=T, type="l") #works plot(1:20, col="#1874CD50", xpd=F, type="l") #doesn't work plot(1:20, col="#1874CD50", xpd=T, type="l") Thank you. Jim [[alternative HTML version
2011 Feb 06
2
Legend outside the plot? xpd?
Hi All, BG: Will try be brief. I'd like 3 graphs on a page (below each other mfrow=c(3,1)), saved to pdf. The three plot data on the same subject so I'm having one legend, to the right of the center graph. I'm using mar=c(5,15,4,15) to bring the sides in so that the graphs are square and not stretched wide. To have the graph to the side I'm thinking xpd=T. Each graph has a number
2009 Jul 16
2
GGPLOT Clipping Regions
Hi there, I'm trying to find out the command to stop clipping to plot region in ggplot. I have a bar chart (axis flipped) with labels on the bars, but the labels are clipped at the plot region box. I know it's possible to turn this off for base and lattice, but how about ggplot? par(xpd=NA) The ggplot2 manual doesn't seem to mention it, and a search for ggplot and