Displaying 20 results from an estimated 3000 matches similar to: "Lattice: distance of tick labels from axis line"
2012 Nov 22
1
[lattice] Increase distance between tick labels and ticks in wireframe plot ("pad")
Hello,
I try to increase the distance between tick labels and ticks in a lattice wireframe plot. Here's a minimal example:
## Minimal example
x <- y <- z <- c(1,2,3)
df <- data.frame(x, y, z)
wireframe(z ~ x*y, df, scales = list(arrows = FALSE, col = "black", font = 1, tck=0.6))
I tried the axis.components option
2011 Mar 10
1
Adjust the distance between tick mark labels and axis
Hi all:
I've been trying to figure out a way to move the tick mark labels in my lattice plots closer to the the axes. I've tinkered with a lot of the "buffer" parameters (those listed by trellis.par.get()), but haven't had any luck. Any ideas?
Cheers.
[[alternative HTML version deleted]]
2009 Jun 17
3
lattice: axis ticks, axis alignment and remove axis from plot
Hi there,
I'm a bit confused concerning the axis tck setting in the lattice
package as the ticks on left sided axis aren't
drawn at all with the following setting:
dados <- data.frame(varsep = factor(rep(1:2,10)),
i = runif(20))
library(lattice)
my.theme <- list(
axis.components = list(left = list(tck = 1, pad1 = 1, pad2 =
2), top = list(tck = 0, pad1
2012 Dec 13
5
remove NA in df results in NA, NA.1 ... rows
Good morning!
I have the following data frame (df):
X.outer Y.outer X.PAD1 Y.PAD1 X.PAD2 Y.PAD2 X.PAD3 Y.PAD3 X.PAD4 Y.PAD4
73 574690.0 179740.0 574690.2 179740.0 574618.3 179650 574729.2 179674 574747.1 179598
74 574680.6 179737.0 574693.4 179740.0 574719.0 179688 574831.8 179699 574724.9 179673
75 574671.0 179734.0 574696.2 179740.0 574719.0 179688 574807.8 179787 574729.2
2010 Dec 17
4
How to arrange the data
Dear R helpers
I have one data as given below.
date value1 value2 value3
30-Nov-2010 100 40 61
25-Nov-2010 108 31 88
14-Sep-2010 11 180 56
I want the following output
date name amount
30-Nov-2010 value1
2006 Apr 06
1
reshape question
Hi,
I have a data fram like this:
date column1 column2 column3 value1 value2 value3
1-1 A B C 10 5 2
2-1 A B D 5 2 0
3-1 A B E 17 10 7
How can I reshape it to:
date column1 column2 column3 v x
1-1 A B C value1 10
1-1 A B C value2 5
1-1 A B C value3 2
2-1 A B D value1 5
2-1 A B D value2 2
2-1 A B D value3 0
3-1 A B E value1 17
3-1 A B E value2 10
3-1 A B E value3 7
Thx!
Regards,
Richard
2010 Apr 19
2
Overlay of barchart and xyplot
Hello R Folks,
I am new to R. I have been struggling to overlay a barchart with a
xyplot together on one plot but did not get this worked out. Any help
and idea are greatly appreciated.
I attached R scripts for barchart and xyplot below and also data I used.
What I am trying to do is just to put the barchart and xyplot together
on one plot.
Huapeng
<<dispersal_infestation.csv>>
2011 May 05
3
Alter a line in a file.
Hi all R users
Ive got a file that contains diffrent settings in the manor of:
setting1="value1"
setting2="value2"
setting3="value3"
setting4="value4"
.
.
.
What I want to do is open the file and change the value of a specific
setting
like wanna change setting4="value4" -> setting4="value5" and then save the
file again.
2007 Feb 24
3
gsub: replacing a.*a if no occurence of b in .*
I am trying to read a number of XML files using xmlTreeParse(). Unfortunately,
some of them are malformed in a way that makes R crash. The problem is that
closing tags are sometimes repeated like this:
<tag>value1</tag><tag>value2</tag>some garbage</tag></tag><tag>value3</tag>
I want to preprocess the contents of the XML file using gsub() before
2009 Apr 28
1
Understanding padding in lattice
Dear R-users,
I am trying to understand what the different padding arguments in
trellis.par.set are exactly controlling the space around lattice plots.
I have used the following code as a basis for testing but it did not
really help me to visualize how the value of each argument changes the
margins and the plotting area. I guess a better way to visualize the
effects of these padding items
2012 Nov 17
2
Using cbind to combine data frames and preserve header/names
I have a dataframe that has a header like so:
class value1 value2 value3
class is a factor
the actual values in the columns value1, value2 and value3 are 0-255, I wish to binarize these using biclust.
I can do this like so:
binarize(dataframe[,-1])
this will return a dataframe, but then I lose my first column class, so I thought I could combine it like so:
dataframe <-
2012 Mar 01
2
Rscript example
Hi there,
I am trying to find an example how to use Rscript
Let's suppose I want to pass 3 arguments (I don't want [options] and -e
[expressions] as described in help)
*on the command line
myRscript.R -arg1=value1 -arg2=value2 -arg3=value3
*In the script
#! /path/to/Rscript
args = commandArgs(TRUE);
>From what I see args is just a string, do I do things correctly ?
--
View this
2009 Sep 10
2
tranform a table?
hello everyone,
i'm new to R, so i hope you dont mind a fairly basic R question. we're
using R to manipulate the results of SQL queries and create an HTML output.
I'm starting with a table that looks essentially like this:
Name Field1 Field2
John value1 value2
Jane value3 value4
My table is stored as a dataframe. I'd like to efficiently produce an
2007 Jun 12
3
Read Windows-like .INI files into R data structure?
I need to process some datasets where the configuration information was
stored in .INI-like files, i.e., text files with sections like this:
[Section1]
var1=value1
var2=value2
[Section2]
A=value3
B=value4
...
>From Google and other searches I haven't found any package, or function
within a package, that reads .INI files into an R list, or other data
structure.
Any suggestions, or
2009 Aug 10
1
manipulating text to generate different formulas to use in nls()
Hello,
In doing a series of non-linear estimations of a function which is a sum of a varying number
of sinusoids, I would like to "autogenerate" the arguments needed by nls() depending on that
number.
For example, when there are two sinusoids:
> nls( y ~ mu + A1 * cos(2*pi*f1*x - P1) + A2 * cos(2*pi*f2*x - P2), data = some.xy.data,
start = list( mu=some.value0,
2009 May 19
2
Feature request: "database show" from manager API
Hi,
In ASTDB, I've got a rather long list of entries like:
/FamilyA/Key1 Value1
/FamilyA/Key2 Value2
/FamilyA/Key3 Value3
...
Instead of sending several DBGet queries (and parsing every response), I'm
wondering if a single "database show" or "database show family" query could
be implemented.
Alternative if to use ssh ("asterisk -rx "database show
2007 Nov 23
1
what''s the best way to deal with class/inheritence
sorry to cross post to dev/users. -dev was not the best option ;-)
Hi
to all puppet masters:
functionnality I need is quite simple:
classes/
one .pp file per class, example: class mail-gateway { ...service/host/templates... definitions }
-> this should set all that''s needed to setup a given system "rôle" in the system (installing packages, config files with variables
2020 Aug 14
2
TDB database commands (TDB used by SAMBA)
Background: FREEBSD 11.2 - SAMBA 4.10.15
Hello everyone,
Good evening/afternoon/morning.
I am trying to "reuse" the TDB database to my portal, where I want to store
basically 3 information:
IP address , Name, TimeStamp - where IP would be the KEY and
"NAME,TIMESTAMP" would be the VALUE.
I am using the tdbtool to insert/store data successfully (like the example
below)
2012 Oct 10
2
reading in a (very simple) list from a file
Apologies - I feel this is a very simple thing to do yet I am failing
massively. I keep finding information about how to do much more complicated
things (usually on this mailing list!), which then fail when I try to apply
it to my simple task.
Anyway, all I want to do is read in a series of key-value pairs from a file.
I thought a list would be a good way to keep these, such that I could access
2020 Aug 17
1
TDB database commands (TDB used by SAMBA)
On Mon, 2020-08-17 at 12:36 -0700, Jeremy Allison via samba wrote:
> On Fri, Aug 14, 2020 at 08:33:33PM -0300, Suporte - KONNTROL via
> samba wrote:
> > Background: FREEBSD 11.2 - SAMBA 4.10.15
> >
> > Hello everyone,
> > Good evening/afternoon/morning.
> >
> > I am trying to "reuse" the TDB database to my portal, where I want
> > to