Displaying 20 results from an estimated 700 matches similar to: "Plot Fonts in Windows vs Mac OSX"
2009 Oct 15
2
How to right-align labels in dotchart
I have only just discovered the joys of the dotchart (since I am reading
William Cleveland's
--
Sean Carmody
The Stubborn Mule
http://www.stubbornmule.net
http://twitter.com/seancarmody
[[alternative HTML version deleted]]
2009 Jul 27
2
Draw plot.table axis on right hand side
With an ordinary plot, to customise the axis it is possible to suppress
drawing the axis and then call Axis. I have been trying to change the
location of the y-axis on a plot.table plot to the right hand side, but
cannot even work out how to suppress drawing the labels.
Here is a toy example of the sort of plot I am working with. Any suggestions
as to how to have the axis on the right hand side
2010 May 16
3
Vector recycling and zoo
I am a bit confused about the different approaches taken to recycling in
plain data frames and zoo objects. When carrying out simple arithmetic,
dataframe seem to recycle single arguments, zoo objects do not. Here is an
example
> x <- data.frame(a=1:5*2, b=1:5*3)
> x
a b
1 2 3
2 4 6
3 6 9
4 8 12
5 10 15
> x$a/x$a[1]
[1] 1 2 3 4 5
> x <- zoo(x)
> x$a/x$a[1]
1
1
>
2009 Jun 05
1
Antialiasing plots and text on different devices
I have a question about antialiasing when R generates bitmaps. (This follows
a thread on the ggplot2 mailing list.)
I mostly use R on Linux, although I sometimes use it in Mac and Windows as
well. On Linux, I've found that plotting shapes 15-18 via cairo results in
bad-looking output. The points are not antialiased, and they are jagged and
misshapen. Plots generated in Windows also aren't
2003 Sep 09
1
Changing Tick Marks for Date Plots
I have been experimenting with various approaches to
plotting (irregular) time-series with reasonable
success. One thing I have been able to do is change
the number of tick marks on the axis. Consider the
following simple example:
> x <- as.data.frame(matrix(ncol=2,nrow=500))
> names(x) <- c("dates","values")
> x$dates <- as.POSIXct(Sys.time()+1:500*86400)
2023 Feb 13
2
Removing variables from data frame with a wile card
x[?V2?] would retain columns of x headed by V2. What I need is the opposite??I need a data grime with those columns excluded.
Steven from iPhone
> On Feb 13, 2023, at 9:33 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>
> ?
>> On Sun, 12 Feb 2023 14:57:36 -0800
>> Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>>
>> x["V2"]
2002 Aug 20
1
(no subject)
Following the "security = domain in Samba 2.x" document in the SWAT
documentation page I do this:
root@pc194-79:/usr/local/samba/bin# smbpasswd -j MDU -r pv-mdu-server1
-Ujohnm%xxxxxxxx
Joined domain MDU.
root@pc194-79:/usr/local/samba/bin#
This is in [globals]:
security = DOMAIN
encrypt passwords = Yes
password server = pv-mdu-server1 pv-mdu-server2
And now I start Samba via smbd
2002 Aug 20
1
samba authentication not auth'ing
Trying to set up a SAMBA print server using SlackWare 8.1. Have
successfully joined it to the domain, but cannot browse into the shares, as
it constantly asks for a password, and refuses to accept any including root
and NTamdin accounts. Anybody have any ideas error logs and smb.conf are below.
This is from the machine specific log file:
[2002/08/21 11:41:56, 0]
2002 Sep 02
3
Slow Samba Printer initialisation, status, and printing
OK, I have been wrestling with this for two weeks now, so somebody please
help !
We have an existing Samba Print Server, running RedHat linux, kernel
2.2.19, that runs fine, but is a P133 with 64 mb ram. So we built a new PC,
the slowest thing we could buy, a duron 1 ghz with 512 mb RAM. Old printer
server is running Samba 2.2.5, new printer server is running samba 2.2.5,
and Slackware 8.1,
2018 Feb 11
4
Parallel assignments and goto
Hi guys,
I am working on some code for automatically translating recursive functions into looping functions to implemented tail-recursion optimisations. See https://github.com/mailund/tailr
As a toy-example, consider the factorial function
factorial <- function(n, acc = 1) {
if (n <= 1) acc
else factorial(n - 1, acc * n)
}
I can automatically translate this into the loop-version
2018 Feb 27
2
Parallel assignments and goto
Interestingly, the <<- operator is also a lot faster than using a namespace explicitly, and only slightly slower than using <- with local variables, see below. But, surely, both must at some point insert values in a given environment ? either the local one, for <-, or an enclosing one, for <<- ? so I guess I am asking if there is a more low-level assignment operation I can get my
2013 Oct 21
2
png(type='cairo'): point symbols without boarders are not anti-aliased?
Hi,
It seems that anti-aliasing in png(type = 'cairo') is not well
supported for the point symbols without boarders, e.g. pch = 16. The
Cairo package works well, though. You can compare png() with
CairoPNG():
png(): http://i.imgur.com/8niB3jX.png
CairoPNG(): http://i.imgur.com/FZBJOxm.png
f = function(dev, ..., main = '') {
dev(...)
plot(c(1, 2, 1, 2), c(1, 1, 2, 2),
2018 Feb 27
0
Parallel assignments and goto
No clue, but see ?assign perhaps if you have not done so already.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Feb 27, 2018 at 6:51 AM, Thomas Mailund <thomas.mailund at gmail.com>
wrote:
> Interestingly, the
2009 Mar 24
1
segfault when running heatmap()
Hi, I was wondering if someone in the mailing list has any insight into this
segfault error that I consistently find when running a script containing
heatmap() in R 2.8.1 and 2.8.0 on a Linux 64-bit machine.
Some points:
1. This occurs when running heatmap().
2. Interestingly, if I source() the script or copy and paste the script in
its entirety, this error occurs. However, if I run the
2018 Feb 11
0
Parallel assignments and goto
> On Feb 11, 2018, at 7:48 AM, Thomas Mailund <thomas.mailund at gmail.com> wrote:
>
> Hi guys,
>
> I am working on some code for automatically translating recursive functions into looping functions to implemented tail-recursion optimisations. See https://github.com/mailund/tailr
>
> As a toy-example, consider the factorial function
>
> factorial <-
2018 Feb 26
0
Parallel assignments and goto
Following up on this attempt of implementing the tail-recursion optimisation ? now that I?ve finally had the chance to look at it again ? I find that non-local return implemented with callCC doesn?t actually incur much overhead once I do it more sensibly. I haven?t found a good way to handle parallel assignments that isn?t vastly slower than simply introducing extra variables, so I am going with
2017 Aug 04
0
define a list with names as variables
Hello Thomas, Ulrik,
thanks for your suggestions.
Giovanni
On Fri, Aug 4, 2017 at 12:13 PM, Thomas Mailund
<thomas.mailund at gmail.com> wrote:
> Do you mean like this?
>
>
>> f <- function(foo, bar) {
> + result <- list(bar)
> + names(result) <- foo
> + result
> + }
>
>> (x <- f("hello", "world"))
> $hello
>
2017 Aug 04
4
define a list with names as variables
Hello,
I'm having troubles defining a list where names are variables (of type
character). Like this, which gives "foo" instead of "world" (the way I
meant it is that "world" is the value of the variable foo). Any hint?
> f <- function(foo, bar) { list(foo = bar) }
> x <- f("hello", "world")
> names(x)
[1] "foo"
2017 Aug 04
1
define a list with names as variables
Do you mean like this?
> f <- function(foo, bar) {
+ result <- list(bar)
+ names(result) <- foo
+ result
+ }
> (x <- f("hello", "world"))
$hello
[1] "world"
> names(x)
[1] "hello"
--
Thomas Mailund
On 4 August 2017 at 12.08.28, Giovanni Gherdovich (g.gherdovich at gmail.com)
wrote:
Hello,
I'm having troubles defining
2017 Nov 28
1
Height not set properly in grDevices::jpeg() with type = "cairo"
Hi,
I have been having issues producing plots in JPEG format, using type =
"cairo" to get better anti-aliasing. When trying to set the physical
size with units = "cm" or units = "mm", the width is set correctly but
the height is not - it looks like the height is simply treated as
pixels regardless of the 'units' argument.
Example:
x = 1:10
y = 2 * x