Displaying 7 results from an estimated 7 matches for "plot_color".
Did you mean:
plot_colors
2007 Aug 05
1
Plot in log scale
...values over 0.005 and the last set
(out$d) has values over 0.0005 of y axe. For this reason, I need have log
scale on y axe.
I've look for web, but I can't do the graph that I need.
I try to do something as:
out <- read.table("/my_path/data.dat", header=T, sep="\t")
plot_colors <- c("blue","red","forestgreen","yellow")
plot(out$a, log="y", type="l", col=plot_colors[1], axes=FALSE, ann=T,
xlab="tittle_x_axe", ylab="title_y_axe", cex.lab=0.8, lwd=2)
axis(1, at=1:200)
lines(out$b, type="...
2006 Oct 16
2
set linetype with plotCI
Dear R-list,
I'm iterating several calls to plotCI [gplots], like so:
plotCI(
x = xvals.f[sorted],
y = yvals.f[sorted],
xlim = c(xmin, xmax), ylim = c(ymin, ymax),
pch = plot_symbols[graph_idx], type = "b",
lty = plot_linetypes[1],
col = plot_colors[graph_idx],
barcol = plot_colors[graph_idx], uiw = NA,
xlab = "", ylab = "",
add = (plot_cnt > 0)
)
This works fine, the result is four graphs exactly like I want them.
Except for one thing, the lty is not used.
I understand this is because plotCI uses the lty ar...
2007 Aug 12
2
Legend on graph
Hi,
I have a problem when I want to put a legend on the graph.
I do:
legend("topright", names(o), cex=0.9, col=plot_colors,lty=1:5, bty="n")
but the legend is writen into the graph (graphs' top but into the graph),
because I have values on this position. How can I write the legend on top
the graph without the legend writes on graph's values.
Thanks.
[[alternative HTML version deleted]]
2010 Sep 13
2
Saveing plot to multiple locations
...e happy :)
my code:
require(party)
irisct <- ctree(Species ~ .,data = iris)
data(iris)
attach(iris)
pdf('/home/joel/Skrivbord/mammamu.pdf')
try(png('/home/joel/Skrivbord/mammamu1.png'))
plot(Sepal.Length, Petal.Length, col=unclass(Species))
legend(4.5, 7, levels(Species), col=plot_colors, cex=0.8, fill=1:3)
try(png('/home/joel/Skrivbord/mammamu2.png'))
plot(irisct)
dev.off()
readBin(pic,'raw',1024*1024)
readBin('/home/joel/Skrivbord/mammamu2.png','raw',1024*1024)
Ive tryed to move around the png and pdf part to see if it worked better if
they wher...
2011 Dec 07
0
EM Algorithm for missing data
...)
X=cbind(X1,X2,X3,X4,X5,X6,X7,X8)
#Start Newton-Raphson Method
#Set Initial parameter
B0=0.001
B1=0.001
B2=0.001
B3=0.001
B4=0.001
B5=0.001
B6=0.001
B7=0.001
#Parameters
B=matrix(c(B0,B1,B2,B3,B4,B4,B6,B7),nrow=8,ncol=1,byrow=F)
#Start Iteration
Diff=1
AA = 0
while(Diff>.000001){
AA= AA +1
plot_colors <- c("blue","red","forestgreen")
plot(B, type="l", lwd=2, col=plot_colors[1], add=TRUE)
split.screen(c(1,1))
#Probability for each comb
P=(1+exp(-(X%*%B)))^-1
#Set V matrix
ni=1
V=diag(n)
for(i in 1:n)
{
V[i,i]=diag(ni%*%P[i]%*%(1-P[i]))
}
#Set S matri...
2011 Feb 22
0
Advice/suggestions on using a stacked barplot with "zoo"?
...5 27.48291678 0 1.88149396 0.028081999 70.60751
1298333495 10.28737246 0 2.25592062 0.009360666 87.44735
1298333505 41.19243729 0 3.65031823 0.037439161 55.11981
> barplot(zoo(prop.table(as.matrix(CPUd[, c(plot_states, "idle")]), 1)*100, index(CPUd))[, 1:4], border = NA, col = plot_colors, ylim = c(0, 100), space = 0, legend.text = plot_states, args.legend = c(x = "topleft", title = "CPU states"), ylab = "%CPU", xlab = "Time (seconds)", main = "CPU utilization during FreeBSD \"make -j12 buildworld\"")
And the resulting gr...
2013 Jan 22
6
plot two time series with different length and different starting point in one figure.
Hello,
I do have two different time series A and B, they are different in length and starting point. A starts in Jan, 2012 and ends in Dec, 2012 and B starts in March, 2012 and ends in Nov, 2012.
How can I plot those two series A and B in the same plot? I.E., from Jan. 2012 - Feb, 2012, it would have one data point from A and from Mar, 2012-Nov, 2012, it would have two data points from A and B,