similar to: Scatterplot question

Displaying 20 results from an estimated 6000 matches similar to: "Scatterplot question"

2012 Nov 05
1
Plot 3 lines in one graph
I'm new with R. I want to plot 3 lines in one graph. This is my data: print(x) V1 V2 V3 V41 -4800 25195.73 7415.219 7264.282 -2800 15195.73 5415.219 7264.28 I tried using matplot, but I cannot get exactly what I want. This is what I get, and this is my code: matplot(x[,1],x[,-1],type='b', xlab = "epsilon_h", ylab = "Value2", xlim=
2017 Nov 27
5
Scatterplot of many variables against a single variable
Dear I try to realize one scatter matrix which draws *one single variable to all variables* with *regression line* . You can see my eviews version in the annex . How can I draw this graph with R studio? Sincerely Engin YILMAZ
2007 Nov 14
1
Changing the text in the strips of lattice plots and y axis
Dear R-helpers, I am sorry for asking something I know has been asked before, I have tried different combinations in the strip function without success... I am using version 2.5.1 and work on a PC. I have barcharts generated from the following formula: barchart(y1+y2+y3~x | g) I need to change the names of the variables y1,y2 or y3 that currently appear in the strips, I have two
2008 Jun 17
2
color2D.matplot axis names
Hi, I finally came up with a nice colored matrixplot, using the color2D.matplot function of the plotrix package. But I can't assign xtics and ytics to this plot. I made sure that the matrix has correct colnames() and rownames(). Here's what I do: a=matrix(1:16, 4, 4) colnames(a) <- c("X1", "X2", "X3", X4) rownames(a) <- c("Y1",
2013 Jan 03
3
How to plot multiple datasets
Good Morning, I have 3 sets of data, all with the same horizontal axis but with varying vertical input. I want to plot all 3 sets on one x-y plot. I can get 3 linear regression plots and 3 polynomial regression plots on the same chart but I have not been able to get more than one set of input data on the same chart. Can you help me? Thank you for all that you do to provide R to the public.
2010 Jun 08
2
scatterplot function - double check: dashed lines
Hello everyone, This is just a quick double check. It concerns the 'scatterplot function' in R. I have 6 curves and I wish to represent each of them by a different kind of line (their colour must be black). The curves are derived from the cuminc function...the coordinates of which are in 'xx'. Upon reading the documentation in R, it looks like I can use the 'on/off'
2005 Jun 15
4
Multiple line plots
Greetings, I would like to plot three lines on the same figure, and I am lost. There is an answer to a similar thread… but I tried matplot and it is beyond me. An example of the data follows: Year EM IM BM 1983 9.1 16.8 -7.7 1984 12.0 18.0 -6.0 1985 13.6 19.1 -5.5 1986 12.4 17.3 -4.9 1987 14.6 20.3 -5.7 1988 20.6 23.3 -2.6 1989 25.0 27.2 -2.2 1990 28.4 30.2 -1.8 1991 33.3 31.2 2.1 1992 40.6
2018 May 20
3
Loop Function to Create Multiple Scatterplots
Hello, I am trying to create multiple scatter plot graphs. I have 1 independent variable (Age - weeks post conception) and 18 dependent variables ("Gene n" Expression) in one csv file. Is there a way to set up a looped function to produce 18 individual scatterplots? At the moment, I am writing the plot() function out 18 times to make the 18 graphs. My code is below and csv file is
2007 Feb 16
2
R implementations of scatterplot/map labeling algorithims?
Dear R community In a current paper, I'm (briefly) considering the topic of producing scatterplots or maps with point labels positioned in such a way as to minimize label overlap and occlusion. This is a topic with a large, but scattered literature. In CS, it is considered NP-hard, but there are a variety of approximate solutions. The most complete bibliography I've found is the
2011 Mar 12
3
how to label lines
Hello R I can not figure out, how to add text string or number to lines like on this image: http://r.789695.n4.nabble.com/file/n3350452/graph.png I have some data series in text file. My script: require(graphics) require(stats) graf=read.table("file",header =FALSE,sep = "", dec = ",",fileEncoding = "", encoding = "unknown", skip=19,nrows=400)
2004 Dec 03
2
Label data points in scatterplot matrices
Hello, I am new to R and would like to know how to label data points in the matrices of scatterplots made by the pairs() command. To be more specific, I want to assign a number to each data point, instead of the small circumference that appears as a data point. If anyone here knows if its possible to do this with R, I would greatly appreciate your help. Thank you, Mauricio Esguerra PhD
2009 Jun 09
1
scatterplot (car) legend modification
hi, new to R and using the car package to do some scatterplots with ellipses hoping to add the area and center points of each ellipse to the legend? looking for some direction / ideas.... here is the script, the data is where golf shots end up by club. x (dispersion), y (distance), group (Club) thanks, sam ## usage: Rscript shotScatter.R infile outfile level1 level2 minX maxX minY maxY
2008 Mar 24
1
Great difference for piecewise linear function between R and SAS
Dear Rusers, I am now using R and SAS to fit the piecewise linear functions, and what surprised me is that they have a great differrent result. See below. #R code--Knots for distance are 16.13 and 24, respectively, and Knots for y are -0.4357 and -0.3202 m.glm<-glm(mark~x+poly(elevation,2)+bs(distance,degree=1,knots=c(16.13,24)) +bs(y,degree=1,knots=c(-0.4357,-0.3202
2007 Dec 06
2
How can I plot this graph
Hi, I am having trouble plotting the graph I need given the follow kind of data > xxx <- data.frame( "x"=c(1,2,3,4,5), "y1"=c(2,4,3,5,6), "y2"=c(3,4,6,3,1), "y3"=c(1,3,5,7,3), "z1"=c(1,NA,3,5,NA), "z2"=c(2,NA,4,6,NA) ) > xxx x y1 y2 y3
2011 Jan 14
1
Question about scatterplot in package car
I am getting an error message from scatterplot: > library(car) > scatterplot(Prestige$income~Prestige$type) Error in Summary.factor(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, : range not meaningful for factors In addition: Warning message: In Ops.factor(x[floor(d)], x[ceiling(d)]) : + not meaningful for factors > The command does output the kind of graph that I want (boxplots).
2003 Jan 03
4
number plot symbol in scatterplot?
If I make a scatterplot and several (e.g. 5) points lie on top of each other at a given x,y location I would like the plot symbol to be the number of superimposed points (e.g. "5"). Could someone please tell me how to do this in R? Thanks! Bill Simpson
2005 May 24
5
How to break an axis?
Dear list, I need to plot four almost horizontal lines with y-values around 1,3,4, 400. If I plot them directly, the first three lines will be indiscernible so I am thinking of breaking y-axis into two parts, one with range (0,5), another (395,400). Is there an easy way to do this? I can think of two ways: 1. use two plots and draw axes manually. The plot margins, are however difficult to
2017 Nov 27
0
Scatterplot of many variables against a single variable
> On 27 Nov 2017, at 11:56, Engin YILMAZ <ispanyolcom at gmail.com> wrote: > > Dear > > I try to realize one scatter matrix which draws *one single variable to all > variables* with *regression line* . You can see my eviews version in the > annex . > > How can I draw this graph with R studio? A tiny note; You do calculations in R not RSudio. RStudio is a tool
2010 Feb 23
2
scatterplots in car package
Hi, using scatterplot in 'car' package. There are 4 plots to be pictured together (ignore data used): library(car) par(mfrow=c(3,1)) ts.plot(rnorm(100)) ts.plot(rnorm(100)) scatterplot(rnorm(100),rnorm(100),boxplot="",smooth=T) # scatter with non-parametric fit problem is that the last one comes 'always' separate. Is there any way to solve it?? of course can use
2012 Feb 10
1
Q - scatterplots
I was able to make a scatterplot but ... 1) what does the "86" mean? The "86" shows up on the graph as well. > scatterplot (Shells/TotalEggs ~ Sector, data = data.to.analyze) [1] "86" 2) Also how do you change the Y axis title? I don't want it to read Shells/TotalEggs, instead I would like it to read Average Hatching Rate (%). 3) What does this error mean?