similar to: graphics bugs: steep slopes and large values beyond ylim (PR#414)

Displaying 20 results from an estimated 10000 matches similar to: "graphics bugs: steep slopes and large values beyond ylim (PR#414)"

2000 Feb 11
1
followup to graphics bug #414
I have done a little bit of poking around at the bug that I reported earlier (steep slopes and lines from far outside the plot range doing funny things), and have tracked it down to the fact that, as noted in the Unix man page, XDrawLine[s] doesn't like coordinates that are outside of the range of (-32767,32767). Now the question is, what to do about this? A quick "fix" (not a fix
2002 Jul 15
0
Incompleteness in Lattice documentation (was Re: lattice question: adding slopes to bwplot)
On Mon, 15 Jul 2002 08:39:05 +0100, Paul Hewson <PHewson at devon.gov.uk> wrote regarding "RE: [R] lattice question: adding slopes to bwplot" Hi, Thanks. It made sense indeed: enough to discover the panel.linejoin function which does what I was looking for. <error here> I also understand now why I didn't find this, and associated, routine:
2013 Oct 04
2
abline is not plotting
Hello there, I have some data I want to plot together with a best-fit line. (see MWE below) The points from the first plot does appear as expected, but the abline does not appear, no matter what I change. I removed the log parameter before, but the abline is a very steep line around the origin. I really want to keep the logarithmic scale, plus a working abline. Can someone help me with that?
2011 Jul 25
1
Trouble with line of best fit
I don't usually do much with graphs in R, and this is my first time adding a line of best fit. Hopefully this is an easy problem to solve. I'm looking at a variable called soloKills along the range 5:28. Here are all my commands, in script form: range=5:28 graph=soloKills title="Solo kill/death data" xlabel="Number of deaths/1 game" ylabel="Mean number of kills/1
2004 Sep 22
1
pairs, panel.functions, xlim and ylim
Hi, I have the following problem. I wanted to get a matrix of scatterplots and I used pairs. I wanted to add the line y=x in each plot and I created a panel function for this scope. I used points and abline in the following way: ## put y=x in each plot panel.lin<- function(x, y) { points(x,y, pch=21, bg=par("bg"), col = "black",cex=2)
2013 Jan 12
1
Question on broken-line regression: 'segmented' or alternative
Dear R-Users, I have a question concerning the determination of breakpoints and comparison of slopes from broken-line regression models. Although this is rather a standard problem in data analysis, all information I gathered so far, did not answer my questions. I added a subsetted example of my data. Basically it is a timeseries of recorded phenotypes in three different groups of plants. You
2001 Feb 05
1
clipped lines have wrong slope in log plot (PR#839)
Hi, I'm using R version 1.2.0 (2000-12-15), on RedHat Linux 6.2 (kernel 2.2.14). The following command ought to plot a straight-line on a log-log graph but instead plots two line segments, both with the wrong slope: plot(c(1,10,100),c(100,10,1),type="l",xlim=c(1,20),ylim=c(1,20),log="xy") Only clipped lines seem to have this problem. Changing to type "b" or
2003 Jan 16
1
graphics
Dear R community, I need to plot the results of some simulations I did using QTL Cartographer. I am plotting LOD scores over three chromosomes. The three plot have to be one next to the other. The procedure I am using is: par(mfrow=c(1,3)) plot(x$x, x$y, ylim=c(0,35), type="l", col="blue", las=1, xaxs="i", yaxs="i", xlab="X Chromosome",
2010 Apr 01
2
Adding regression lines to each factor on a plot when using ANCOVA
Dear R users, i'm using a custom function to fit ancova models to a dataset. The data are divided into 12 groups, with one dependent variable and one covariate. When plotting the data, i'd like to add separate regression lines for each group (so, 12 lines, each with their respective individual slopes). My 'model1' uses the group*covariate interaction term, and so the coefficients
2010 May 04
1
rgl: plane3d or abline() analog
For use with rgl, I'm looking for a function to draw a plane in an rgl scene that would function sort of like abline(a, b) does in base graphics, where abline(0, 1) draws a line of unit slope through the origin. Analogously, I'd like to have a plane3d function, so that plane3d(0, 1, 1) draws a plane through the origin with unit slopes in x & y and plane3d(3, 0, 0) draws a
2003 Aug 11
0
Gradient of the slope of a surface
Hello All I am currently looking at spatial data - Chorophyll A concentration in sea water over a wide geographic area. These data are used to determine the location of ocean fronts and hence where tuna are located. A front is identified by a steep gradient in the change in chloroA concentration. I have been looking at these data qualitatively using persp, contour, and image but would like to
2010 Aug 31
1
"pairs" with same xlim and ylim scale
Hi list, I have a function which basically is a wrapper of pairs with some useful panel functions. However, I'm having trouble to pass the "xlim" and "ylim" into the function so the x and y axes are in the same scale and 45 degree lines are exactly diagonal. I've looked at some old posts, they didn't help much. I think this is b/c I have multiple panel
2008 Apr 25
1
grid() : start values?
Hi, is not there any way to tell grid() the starting value? With nx,ny I get the right number of grid cells, but not on the exact values I would like them. (I know I can do it with abline(), just asking for an easier way, i.e. grid(nx,nx,start.x,start.y)) An alternative way (which would solve another problem) would be making the axes coincident with the rectangular plot region, that is, if
2002 Nov 05
1
graphics display problem
Hello all, I come arcoss a problem that has to do with graphics display in my machine (Redhat 7.35). This is what I did. I asked R to do multiple linear regression by: amodel<-lm(dat[,4]~dat[,1]+dat[,2]+dat[,3]) plot(amodel) and I got only one figure (residuals vs. the fitted; instead of several plots), and the following message: Error in abline (h=0, lty=3,
2010 Feb 08
1
About scales in graphics
Hi, I'm building two graphics just changing the scale to show the graphic illusion. The first graph would be 'correct'. atend = c(410,430,450,408,408,405) names(atend) = c('Janeiro', 'Fevereiro', 'Mar?o', 'Abril', 'Maio', 'Junho') barplot(atend, las=1, xlab='Meses', ylab='N?mero de atendimentos',
2013 Nov 26
3
[LLVMdev] Finding the first line number of a function (-g vs -gline-tables-only)
For the sample profiler, I need to determine the location of the first user instruction in the function. This can be the LOC where the function header is or the LOC of the actual first instruction, it doesn't really matter. But it needs to be consistent wrt -g and -gline-tables-only. Currently, I'm scanning for the first non-zero line number from the top of the function. This skips over
2012 Nov 25
3
Comparing linear regression coefficients to a slope of 1
Hi! I have a question that is probably very basic, but I cannot figure out how to do it. I simply need to compare the significance of a regression slope against a slope of 1, instead of the default of zero. I know this topic has been posted before, and I have tried to use the advice given to others to fix my problem. I tried the offset command based on one of these advice threads as follows:
2007 Nov 08
1
ggplot2 geom_abline slope not working?
I am learning ggplot2, and need your help. When I try > p <- ggplot(mtcars, aes(x = wt, y=mpg)) + geom_point() > p + geom_abline(slope=5) (from http://had.co.nz/ggplot2/geom_abline.html) the slope of the abline does not change, but this works: > p + geom_abline(intercept=20) In order to have slope work, I have to use > p + geom_abline(aes(slope=5)) Is it a bug, or is there
2007 Jun 08
1
Location of xgraphics routines
Hi I have an application that uses the Xwindows graphics library. Things like XOpenDisplay XDrawLine XCreateSimpleWindow XDrawString and many more Under all the CENTOS 4.X systems these were automatically loaded. I dont have these loaded under my CENTOS 5 system. I get a heap of undefined references when I compile the code. Could someone tell me, point me, where these routines now reside on
2005 Mar 31
1
hexbin and grid - input data values as coordinates
Dear all, I am trying to use hexbin and read the very interesting article on grid ( http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Murrell.pdf ) and am hoping for some advice from more experienced users of hexbin. I am trying to visualise a data and fit a straight line trough it. For example, here is how I would do it in the usual way # simulate data x <- rnorm(1000) y <-