Displaying 20 results from an estimated 500 matches similar to: "problema con grafico lattice ...."
2017 Jan 21
2
problema con grafico lattice ....
Hola,
Por si lo quieres con colores rellenando cada punto:
#----------------
library(data.table)
library(lattice)
dat <- read.table("pba.csv", header=TRUE, dec=",", as.is=TRUE)
row.names(dat) <- NULL
dat <- as.data.table(dat)
dat$mycol <- ifelse(dat$sol =="ControlAE", "red", dat$sol)
dat$mycol <- ifelse(dat$mycol
2010 Aug 21
1
lattice::xyplot() with one factor for points and another for lines
Hi:
In lattice, how does one handle separate graphical behavior for two
different factors? In the xyplot below, the objective is to use the levels
of one factor to distinguish corresponding shapes and colors, and the levels
of the other factor to perform level-wise loess smooths.
# Illustrative data:
d <- data.frame(time = rep(1:8, each = 6), val = rnorm(48),
gp1 =
2006 Jul 29
1
fancier plotting
Hi
thank you for talking the time to help me with this.
I have a sequence of numbers in a file and an equal sequence of various character, say(a b c d) each occurs more than once. I need to plot the numbers so that numbers corresponding to a in the other sequence would have green dots, those corresponding to b a red dot, nothing on c and blue square for d. i.e
2 a show a green dot
4 b show a
2014 Jul 04
3
Cambio de "titulo" en barra de un grafico
Estimados gracias por todos los consejos para resolver el tema de la
importacion de una linea de texto, al final era lo que decia Francisco
respecto al mu que estaba en la linea y la codificacion de lenguaje.
Ahora tengo otra consulta, pero esta vez respecto a graficos con
lattice. Hago un grafico (adjunto) con el siguiente codigo:
xYplot (Cbind(mean,ll,ul) ~ con| dia, groups=sol,
2013 Nov 19
1
Repeated measures with categorical data
Hello,
I am working in a longitudinal study, with a categorical variable as a
dependent variable (alcohol consumption: no use, use, abuse and dependence)
with repeated measures (baseline, 1 year, 2 years). Besides I have another
variable with two groups: control and experimental.
I would like to analyze the evolution in each group, I have though in lme,
but I am not sure if I can do an lme with
2014 Nov 06
2
diferentes escalas en el X de un grafico con varios paneles
Estimados, tengo el siguiente problema:
Tengo que graficar la concentracion de un metabolito en algunas muestras
contra la concentracion del solvente con que fue extraido. Las
concentraciones varian desde cero (para un control) hasta varios miles
de unidades de concentracion (miliMolar).
Para que se puedan diferenciar los puntos en el eje X, se ha usado una
escala logaritmica. Hasta ahi todo
2014 Jul 04
2
Cambio de "titulo" en barra de un grafico
Muchas gracias Carlos, mas aun pues en españa es mas de medianoche del
viernes, no ?
eric.
On Fri 04 Jul 2014 19:08:24 CLT, Carlos Ortega wrote:
> Hola,
>
> Esta es una manera de hacerlo (he incluido un par de cambios
> adicionales en las etiquetas):
>
> #---------------------------------
> mfctr$dia.new <- paste("dia_",mfctr$dia, sep="")
>
>
2015 Feb 26
2
como eliminar los nombres de las series en el grafico
Estimada comunidad, estoy haciendo un grafico con la funcion xYplot
(paquete Hmisc) para agregar barras de error a los puntos del grafico.
Pero pasa algo que no me gusta: aparece el nombre de las series en el
grafico.
Alguien sabe como puedo eliminarlas ? no quiero usar ggplot porque ya
tengo hechos todos los graficos con lattice.
Aqui el codigo que uso y los datos (estan separados por tab, no
2010 Jul 15
2
replace negative numbers by smallest positive value in matrix
Hi Group,
I have a matrix, and I would like to replace numbers less than 0 by
the smallest minimum number. Below is an
small matrix, and the loop I used. I would like to get suggestions on
the "R way" to do this.
Thanks,
Juliet
# example data set
mymat <- structure(c(-0.503183609420937, 0.179063475173256, 0.130473004669938,
-1.80825226960127, -0.794910626384209, 1.03857280868547,
2007 Feb 04
3
Reference to dataframe and contents
This is probably easy for experienced users but I could not find a solution.
I have several R scripts that process several columns of a dataframe
(several dataframes and columns actually, but simplified for my question).
References such as:
myDF$myCol
are all over. I like to automate this for other dataframes and columns by
defining a reference only once in the beginning of the script.
One
2003 Feb 13
2
multi-color plot
hi all,
i am trying to make multi-color plots. that is, i generally use,
plot(x, y, type="n")
text(x, y, labels=class)
here, the vector class denotes the class of each point. there are
usually 3-4 classes of points. how may i display the different
classes in different colors?
thanks for any help.
--
saurav
2011 Dec 05
2
barplot ignoring col parameter
Hi All,
I'm having a problem with barplot:
mydata
[1,] 2 108 0 0 0 1 3 0 0 0 0 0 7 18 3 4 8 20 26 20 19 7 1 1
mycol = c(rep('yellow', 2), rep('white', 3), rep('orange',2), rep('white', 5), rep('orange',3), rep('red',9))
barplot(mydata, col = mycol)
gives me an uniformly yellow barplot. How do I solve this?
bw
Federico
2014 Nov 05
2
Solo enteros en el eje Y de graficos con lattice
Estimada comunidad, imagino que debe ser simple, pero llevo ya varias
horas buscando como hacer para que el eje Y de un grafico hecho con
lattice use solo enteros. Los valores que se grafican son enteros entre
0 y 3, pero el grafico incluye 0.5, 1.5 ...
Alguna idea ? ... ya lei la ayuda de xyplot pero no veo donde podria
encontrarse la opcion.
Gracias,
Slds, eric.
--
Forest Engineer
2007 Aug 06
3
Error in using nlevels in apply function
Dear R users,
I am currently trying to create my first personnal function and use it
with the apply function. The purpose of this function is to create a
vector summarizing the number of levels in a given selection of
data.frame columns.
I tried to transpose the indexation method used by the nlevels function
but it doesn't seem to work. I did not find anything uesful in the
archives so
2012 Jul 29
1
Zoo panel function
I would really like some help with understanding the panel function, in
zoo. Thank you.
R 15.1 and zoo 1.7-7.
library(zoo)
x = seq(0,3*pi,length.out=100)
y = sin(x)
zobj = zoo(y, x)
###########################################################
## EXAMPLE 1 - GLOBAL ARGUMENT
## This panel function works
## But, it relies on mycol, which is a global variable
2011 Dec 06
1
Duda sobre summary
Hola!! A ver si alguien puede ayudarme!!
Para ajuste de modelos lineales normalmente uso Gretl. Ahora estoy
empezando a hacerlo en R. Me gustaría saber si existe alguna función
que haga un summary extendido como el de Gretl. Os pongo un ejemplo
del summary de Gretl.
Modelo 1: MCO, usando las observaciones 1968-1982 (T = 15)
Variable dependiente: Invest
Coeficiente Desv. Típica
2007 Mar 29
1
Dell poweredge 860 acceptable forofficeenvironment ?
>> The tomshardware-guys (no gals would do this...) have removed the
>> fans, and immersed the innards of the computer in a sealed cabinet
>> filled with cooking oil. So they have a completely silent machine
>> in 40C warm oil. Amazing...
It certainly is. And, I suppose, this will work, for a while, as long as:
The "sealed cabinet", has enough expansion
2005 Jul 27
3
Asymmetric colors for heatmap
> Dear expeRts,
>
> Currently, my colors are as follows:
> mycol <-
> c("blue1","blue2","blue3","blue4","black","yellow4","yellow3","yellow2","y
> ellow1")
> heatmap(snp, Rowv=NA, Colv=NA, col=mycol)
>
> However, I would like to have the following colors:
> bright blue ->
2010 Jan 12
1
Multiple symbols per single line in a legend
Hello everybody,
Is it possible to coax legend() into displaying more than one simbol per
line in legend? I have a graph like the one attached to this mail; I would
like to reorganize the legend in such a way that the duplicate text would be
omitted, i.e., the first line would read <square> <triangledown> "increasing
frequency" and the second one would read <circle>
2018 Sep 22
2
grafico de barras (barchart) con barras de error y achurado (hatching) en lugar de escala de grises
Que tal comunidad, hace dias que estoy en un problema que no puedo
resolver. Resulta que debo confeccionar un grafico de barras (columnas)
que debe incluir barras de error. La unica forma en que me resulto es
con barchart() de la libreria Hmisc, y haciendo un truco un poco
complicado para mi nivel de usuario autodidacta. Ahora que ya lo tengo
(despues de semanas de busqueda) resulta que me