Displaying 20 results from an estimated 1000 matches similar to: "Adjusting font size in a lattice graph"
2008 Jun 06
3
R loop
I all
I am just trying to get the idea of a loop if statement for another
purpose. I was going to label a new variable based on date ie first week
1, second week 2 etc. My code in bold is wrong but seems logical to me,
could someone help.
x <-
rep(c(2660156,2663703,2658165,2659303,2661531,2660914),c(2,2,2,2,1,1))
y <-
rep(c(6476767,6475013,6475487,6479659,6477004,6476388),c(2,2,2,2,1,1))
2011 May 03
2
Overlapping x axes using Lattice
Hi R users
I apologise in advance for this question as I suspect it is simple and
perhaps others have had this problem.
I am struggling to sort out how to fix the x axes so that the labels
don't overlap.
I have put the following example together to show my problem.
library(lattice)
titre <- as.factor(rep(c(10999,20999,30999,40999,50999,60999,
2008 May 06
3
Spatial join between two datasets using x and y co-ordinates
Hi R users
I am trying to create a spatial join between two datasets.
The first data set is large and contains descriptive data including x
and y co-ordinates.
The second dataset is small and has been selected spatially. The only
data contained within the second dataset is the x and y coordinates only
i.e. no descriptive data.
The aim of a join made between the two datasets is to select
2009 Mar 17
3
Combining columns from two dataframes
I all
I am trying to combine columns from two dataframes to make a completely
new dataframe consisting of one column of dates (ie a combination of
dates from the two dataframes).
>From the following dataframes
a b
1 2008-07-27 1
2 2008-10-01 2
3 2008-08-15 3
4 2008-08-14 4
5 2008-08-14 5
6 2008-09-20 6
c d
1 2008-07-27 1
2 2008-10-01 2
I would like to get:
z
2009 Apr 01
4
Recode of text variables
Hi all
I am trying to do a simple recode which I am stumbling on. I figure
there must be any easy way but haven't come across it.
Given data of A","B","C","D","E","A" it would be nice to recode this
into say three categories ie A and B becomes "Treat1", C becomes "Treat
2" and E becomes "Treat 3".
I tried
2010 Feb 14
1
Adding a regression line to an xyplot
Hi R users
> I am trying to add a regression line to a graph for "c" for factor 2
> only. Any suggestions?
>
library(lattice)
a=(1:10)
b=c(1:5,16:20)
c=as.factor(c(rep(1,5),rep(2,5)))
d=data.frame(a,b,c)
xyplot(a~b, pch=c(6,8),data = tavg, groups=d$c,
reg.line=lm, smooth=FALSE, type=c("p","g"),xlab="a",ylab="b")
> I would
2011 May 17
1
Dealing with null values Aggregate function
Hi R users
I trying to some aggregate statistics on a very large dataset. The null
values are causing a problem. I would like to calculate aggregate values
for groups. I am just no sure how to deal with the "" I would ideally
like them to ignored ie if there is only 1 value over several columns
than that value would be the summary statistic.
I have put the following example together to
2009 Apr 14
2
Subset function: selecting variables within a factor
Hi all
I know this must be an easy one so sorry for the trouble. I would like
to select a list of variables within a factor
The following example is given in help for subset:
subset(airquality, Temp > 80 select = c(Ozone, Temp))
So how do I select all temperatures of 90 and 80 ie Temp = c(80,90)
I would appreciate your help.
Kind regards
andy
Andrew McFadden MVS BVSc
Incursion
2008 May 11
1
Finding unmatched data between two dataframe using several factors
Hi R users
I am trying to find unmatched data from two dataframes. I would like to
find unmatched data based on several factors. For the following data:
dat1 <- data.frame(x = paste("A", 1:6, sep=""),
y = c("andy","bob","ciaran","dan", "eion",
"fred"))
dat1
dat2
2008 May 13
1
Legend in scatterplot and adding regression lines
Hi R users
The scatterplot (used package R-Cmdr ) obtained has the legend off the
plot in the upper left
I would like to decide where to put the legend - is that option still
available and how do I do it?
code:
Dataset <- read.table("J:/Pigmatingsb.txt", header=TRUE, sep="\t",
na.strings="NA", dec=".", strip.white=TRUE)
2008 Mar 06
2
R code for selecting places spatially and by time
Hi all
The code of trying to write relates to selecting properties (given by x
and y co-ordinates) spatially (distance "X" from "infected" properties
identified by date) over a certain time period.
i.e. what properties are within 3 km from properties infected on
"2008-01-01" over the last 14 days.
Is any one able to give me some clues on how to write code to solve
2011 Nov 21
1
Lattice graph help
Hi all
I hope you might help me with some aspects of producing a graph in lattice. There are three things I have struggling with and that is: 1. to separate the horizontal box rows from each other; 2. to change the colour of the horizontal and vertical strips to white; and 3. to place the axes labels on the left y axes and on the bottom x axes. I would really appreciate some help. I have put the
2008 Apr 16
0
Instantaneous hazard of an event i.e. death
Hi all
I am trying to calculate the instantaneous hazard (rather than
cumulative hazard) for an event "bird death".
Some sample data is as follows:
year<-c(rep(2003,10),rep(2004,10))
time<-c(5,10,5,15,20,10,15,15,25,25,5,15,15,5,25,10,25,15,35,25)
event<-c(1,0,1,1,0,1,1,0,1,0,1,0,0,1,0,0,0,0,1,0)
Ideally I would like to know if the hazard is greater at specific time
periods
2008 Mar 12
4
Distances between two datasets of x and y co-ordinates
Hi all
I am trying to determine the distances between two datasets of x and y
points. The number of points in dataset One is very small i.e. perhaps
5-10. The number of points in dataset Two is likely to be very large
i.e. 20,000-30,000. My initial approach was to append the first dataset
to the second and then carry out the calculation:
dists <- as.matrix(dist(gis data from 2 * datasets))
2011 Nov 22
0
Lattice graph strips and axes
Hi all
I was wondering if it is possible to get rid of the horizontal strips and produce each barchart with a left y axes and lower x axes only. Also can you specify an exact size of graph ie 88mm wide with a font size of 'x'.
library(lattice)
library(latticeExtra)
n=as.factor(c(1:5,1:5))
2008 Nov 11
0
Producing a matrix of values
I all
I am trying to create a matrix for a network diagram:
# 1. The following produces two dataframes. The table "place" is a
dataframe of all places made from "tra" a tracing table that has the
source place and destination place. The table "details" is a dataframe
of all source and destination properties.
src=rep(c(1:3),each=5)
des=c(16:30)
rsk=rep(3,5)
2011 May 23
0
SNA query
Hi R Users
I am working with the very useful SNA package (v.2.2) in R and have a
query I hope you may be able to help out with:
I have been using gplot commands to plot an SNA graph. Here's the code
and output:
library(sna); library(network); library(RODBC)
setwd("c:\\temp")
x = read.csv(file = "testforr.csv")
Total.Sold=c(1,3,6,1,3,6,1,3,6,6,9)
src=c(1:10,1)
2004 Jul 08
2
Cisco 7960 NAT question
I've got 4 Cisco 7960's and they're behind a firewall (sonic wall). The
asterisk box is on a WAN connection on the other end of a DS3, the
phones connect fine to the Asterisk server as you can see from the
output of show sip peers below.
tp3/tp3 <firewall-ip> D N 255.255.255.255 60665
Unmonitored
tp2/tp2 <firewall-ip> D N
2012 Dec 02
4
[LLVMdev] Predictive Commoning / Scalar Replacement
On 12/1/2012 7:10 PM, Nick Lewycky wrote:
>
> I don't know of any, but I was wondering if you could point me to the
> paper that describes predictive commoning? I could only find the
> second-order predictive commoning paper, which if I understand correctly
> is a much newer and different algorithm.
I think the original paper was some internal IBM publication.
The idea is
2006 Feb 01
1
Samba 4
Hey Guys,
I know it's only TP1 and maybe? this isn't the best place to ask but where
do I start?
I've download the debian experimental Samba 4 TP1 package and installed it.
The debian installer did the provisioning and I've set up dns. I set up a
share and it all seems to work fine with the built-in administrator account.
But what now? how do I join computers to the domaind? Do