|
I have 4 sets of values: y1 , y2 , y3 , y4 and one set x . The y values are of different ranges, and I need to plot them as separate curves with separate sets of values on the y-axis.
To put it simple, I need 3 y-axes with different values (scales) for...
Started by ldigas on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's]; %# plotyy plotyy(x....
I guess I should ask if you've considered using HOLD or just rescaling the data and using regular old plot standardization, etc..), then you can just easily plot them using normal plot, hold sequence.
|
|
I have three parameters x , y and t . But the problem is my file structure.
My files are named as:
e_x_y.txt t_x_y.txt
where e_x_y.txt has the error for particular values of x and y and t_x_y.txt has corresponding time values.
I need to plot the values...
Started by dksjalk on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In this example, I'll plot a sphere....
I can give you two: In order to do this, you will have to plot a series of x,y,t points and somehow represent the error.
The type of plot you are trying to make may be difficult to visualize well.
|
|
I've been experimenting with both GGPLOT2 and lattice to graph panels of data. I'm having a little trouble wrapping my mind around the GGPLOT2 model. In particular, how do I plot a scatter plot with two sets of data on each panel:
in Lattice I could do...
Started by JD Long on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It looks like I can do this:
pg + geom_line(data=dd,aes(x_value, Actual_value,group=State_CD), colour="green")
is that a good way of doing things? It odd to me because... .
Well after posting the question I ran across this R Help thread that may have helped me .
|
Ask your Facebook Friends
|
Hi, I am trying to plot a series of 2D matrices containing ones and zeros (effectively black and white images) in matlab, which are ordered in 3D.
The code I have so far is:
function PlotthreeD() numrows = 100; numcols = 100; Plot1 = zeros(numcols); Plot...
Started by James on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The last row....
The one thing you would have to be mindful of is this comment in the documentation:
The default shading is faceted , which colors each cell with a single color .
Investigate the Matlab function imagesc()
The function PCOLOR is one option .
|
|
How is possible to join dots of a scatter plot after plotting, and make a line from a dotted plot?
Started by Alireza on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm guessing you generated a scatter plot from x and y coordinates by,
plot(x,y,'.');
Join them with
plot(x,y,'.'); hold on; plot(x,y,'-');
Or in one command
plot(x,y,'.-');
Is this what you wanted?
If you have an existing....
|
|
I have the following code to plot one graphic:
plot(softmax(:,1), softmax(:,2), 'b.')
and then this one to plot another:
plot(softmaxretro(:,1), softmaxretro(:,2), 'r.')
Now I'd like to be able to plot both ones in the same place. How can I accomplish...
Started by devoured elysium on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You need to use the HOLD command so that the second plot is added to the first:
plot(softmax(:,1), softmax(:,2), 'b.'); hold on; plot(softmaxretro(:,1), softmaxretro(:,2), 'r.');
Solution#1: Draw both set of points on the same axes....
|
|
How can I render the value of points in a plot in the plot itself?
Thank you.
Started by omarish on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
And use plot(....
Use text() :
plot(1:10, 1:10) text(5, 5, "Foo")
and see help(text) for options on placing the text) > y = b0 + b1*x + rnorm(n, 0, 15) > plot(x, y) > plot(x, y, type='n') > text(x, y help for text).
|
|
Whenever I run this code , the first plot would simply overwrite the previous one. Isnt there a way in R to separate to get two plots ?
plot(pc) title(main='abc',xlab='xx',ylab='yy')
plot(pcs) title(main='sdf',xlab='sdf',ylab='xcv')
Started by phpdash on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
See:
?Devices
And,
?dev.cur
If you just want to see two different....
Par(mfrow = c(2, 1))
If you want the 2 plots in separate windows or files you can select new devices before calling each plot command.
Try using par before you plot.
|
|
So after installing and successfully compiling my first non-modded DLL, I started to try a little Mod with XML changes myself. Without the Tutorials from Kael, Duke176 and the other I wouldn't probably succeed.
So here is my first SDK Modcomp:
VKs Plot...
Started by [VK] on
, 20 posts
by 11 people.
Answer Snippets (Read the full thread at civfanatics):
In both mods the result may be that a stack of unprotected transport ships is on the one plot....
Both will try to enter one plot but can't because it is not possible that all units enter this plot.
Think of two ship stacks.
An example.
|
|
I'm using R to loop through a data frame, perform a calculation and to make a plot.
for(i in 2 : 15){ # get data dataframe[,i] # do analysis # make plot a <- plot() }
Is there a way that I can make the plot object name 'a', using the value of 'i'? ...
Started by womble on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Have a look at the packages lattice or ggplot2 , the plot functions in these packages create) # you have to "print" or "plot" the objects explicitly
Or append the objects to a list:
p <- list() p[[1]] <- xyplot(...) p[[2]] <- xyplot....
|