Displaying 20 results from an estimated 600 matches similar to: "using for loops with ggplot"
2013 Apr 30
1
trace with reference class
Hi
The final line of the example in ?setRefClass induces an error:
> ## debugging all objects from class mEdit in method $undo()
> mEdit$trace(undo, browser)
Error in envRefInferField(x, what, getClass(class(x)), selfEnv) :
'undo' is not a valid field or method name for reference class
"refGeneratorSlot"
$trace tries to embed the trace in the generator object (instead
2011 Jan 15
1
Truetype and Opentype font in pdf device
Deal all,
I want to know if truetype or opentype fonts are available in pdf
device (i.e., pdf() or dev.copy2pdf()), and if so, how to do it?
Now I can do as followings:
1. convert ttf to afm using ttf2afm, e.g.: $ ttf2afm Impact.ttf > Impact.afm
2. put the afm file in $R_HOME/library/grDevices/afm
3. register a new type1 font: pdfFonts(Impact=Type1Font("Impact",
2012 Jul 12
1
Modifying a list: what gets copied?
Hi all,
In my continued effort to understand when and what R copies, I've
designed a small experiment to try and figure out what goes on when a
list gets copied - is it a shallow copy or a deep copy. I believe the
following experiment isolates the difference:
options(digits = 2)
powers <- 4:6
n <- setNames(10 ^ powers, paste0("e", powers))
xs <- lapply(n, seq_len)
zs <-
2012 Mar 28
1
rep with bigz in gmp
Hi
With package:gmp, is this an expected behavior?
> rep(1:3, rep(3, 3))
[1] 1 1 1 2 2 2 3 3 3
> rep(as.bigz(1:3), rep(3, 3))
Big Integer ('bigz') object of length 9:
[1] 1 2 3 1 2 3 1 2 3
This code is used inside `outer`, so more worse
> outer(1:3, 1:3, `*`)
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 2 4 6
[3,] 3 6 9
> outer(as.bigz(1:3),
2006 Aug 11
1
Calling a Controller method from the command line
Hi All,
I need to run some reports via cron. I know I can use runner and call
a method in a model class. But I''d really like to use templates and
IMO this kind of logic belongs in a controller anyways.
These are periodic reports so I don''t need nor want to leave a server
running all the time, so getting the data via curl/wget isn''t really
an option.
What I really
2006 Aug 13
1
Is :finder_sql using #{id} broken?
Hi All,
It seems that :finder_sql in a HABTM association only interprets a
single quoted #{id} the first time through a query. I see examples
of this being used in a few places (though with has_many) and I don''t
really see how to use :finder_sql without a #{id}.
Am I missing something or is this just broken?
--
Paul Haddad (paul.haddad@gmail.com paul@pth.com)
2024 Jan 17
2
perfect html player for Icacast ?
hi friends, (sorry in advance if it is the wrong place to ask)
i'm seeking the perfect player for a html website running a radio
station feed by RadioDJ + Icecast
i need :
- good compatibility (windows, mac, android, ios...)
- display artist & title (send by my encoder in metadata)
- cover and album : search & display by the player himself (in LastFM db
?) (or iTunes API?)
-
2006 May 17
1
Concurrency
Hello,
I'm very intersted in developing a site using your platform. I was
wondering if you've tested the theoretical maximums for this software and
can show me some numbers. How many simultaneous users could I expect to
handle at 128k (hardware not being the limiting factor)?
If you'd like to speak please send a number and a good time to call.
Sincerely,
--
Eric Haddad
2016 Jul 21
2
Remove zext-unfolding from InstCombine
Hi all,
I have a question regarding a transformation that is carried out in InstCombine, which has been introduced by r48715. It unfolds expressions of the form `zext(or(icmp, (icmp)))` to `or(zext(icmp), zext(icmp)))` to expose pairs of `zext(icmp)`. In a subsequent iteration these `zext(icmp)` pairs could then (possibly) be optimized by another optimization (which has already been there before
2018 Jan 20
2
Split charts with ggplot2, tidyquant
For this kind of control you will probably need to move to base graphics
and utilize the `fig` argument in par(), in which case you would want to
run the plot() command twice: once with your first outcome and once with
your second, changing the par() settings before each one to control the
size.
On 01/19/2018 01:39 PM, Eric Berger wrote:
> Hi Charlie,
> Thanks. This is helpful. As
2024 Jan 17
1
perfect html player for Icacast ?
hi friends, (sorry in advance if it is the wrong place to ask)
i'm seeking the perfect player for a html website running a radio
station feed by RadioDJ + Icecast
i need :
- good compatibility (windows, mac, android, ios...)
- display artist & title (send by my encoder in metadata)
- cover and album : search & display by the player himself (in LastFM db
?) (or iTunes API?)
-
2018 Jan 19
2
Split charts with ggplot2, tidyquant
So the general strategy for getting these into separate panels in ggplot
is to have a single variable that will be your response and a factor
variable that indexes which original variable it came from. This can be
accomplished in many ways, but the way I use is with the melt() function
in the reshape2 package.
For example,
library(reshape2)
plotDF <- melt(SPYdf,
??? ??? ??? ??? ??? ???
2024 Jan 17
1
perfect html player for Icacast ?
You do not need a "perfect player"- almost all media players can stream
audio, too.
What you need is to save the playlist (.m3u by default) and tell your
media player to play that.
On Wed, 2024-01-17 at 21:01 +0100, marc at clubcapelli.com wrote:
>
> hi friends, (sorry in advance if it is the wrong place to ask)
>
> i'm seeking the perfect player for a html website
2018 Jan 21
1
Split charts with ggplot2, tidyquant
Thanks for the reminder about lattice! I did some searching and there's
a good example of manipulating the size of subplots using the `position`
argument (see pp. 202-203 in the Trellis Users Guide:
http://ml.stat.purdue.edu/stat695t/writings/Trellis.User.pdf). This is
not within the paneling environment with the headers like in other
trellis plots though, so you'll have to do a bit
2018 Jan 20
0
Split charts with ggplot2, tidyquant
That (the need for base graphics) is false. It certainly **can** be done in
base graphics -- see ?layout for a perhaps more straightforward way to do
it along the lines you suggest.
However both lattice and ggplot are based on grid graphics, which has a
similar but slightly more flexible ?grid.layout function which would allow
one to size and place subsequent ggplot or lattice graphs in an
2018 Jan 19
0
Split charts with ggplot2, tidyquant
Hi Charlie,
Thanks. This is helpful. As mentioned in my original question, I want to be
able to plot a few such charts on the same page,
say a 2 x 2 grid with such a chart for each of 4 different stocks. Using
your solution I accomplished this by making
a list pLst of your ggplots and then calling cowplot::plot_grid(
plotlist=pLst, nrow=2, ncol=2 ) That worked fine.
The one issue I have is that
2016 Jul 27
2
Remove zext-unfolding from InstCombine
Hi Sanjay,
thank you a lot for your answer. I understand that in your examples it is desirable that `foo` and `goo` are canonicalized to the same IR, i.e., something like `@goo`. However, I still have a few open questions, but please correct me in case I'm thinking in the wrong direction.
> Am 21.07.2016 um 18:51 schrieb Sanjay Patel <spatel at rotateright.com>:
>
> I've
2024 Jan 17
1
perfect html player for Icacast ?
Good evening,
On Wed, 2024-01-17 at 21:01 +0100, marc at clubcapelli.com wrote:
> hi friends, (sorry in advance if it is the wrong place to ask)
>
> i'm seeking the perfect player for a html website running a radio
> station feed by RadioDJ + Icecast
just to clarify this first: so you're in control of the Icecast and the
source client, correct?
>
> i need :
> -
2010 Dec 10
1
melt causes errors when characters and values are used
Hello,
I am finding that the melt function from the reshape library causes
errors when applied to a data.frame that contains numeric and character
columns. For example,
melt(id.vars="ID",data.frame(ID=1:3,date=c("a","b","c"),value=c(1,4,5)))
ID variable value
1 1 date a
2 2 date b
3 3 date c
4 1 value <NA>
5 2
2024 Jan 17
2
404 - The file you requested could not be found
Just follow up on this: Anyone know how to uninstall Icecast from RHEL after compiling from source?
Thank you so much
Martin
From: Icecast <icecast-bounces at xiph.org> On Behalf Of Mayiani, Martin Martine - mayianmm
Sent: Thursday, January 11, 2024 4:22 PM
To: Icecast streaming server user discussions <icecast at xiph.org>
Subject: Re: [Icecast] 404 - The file you requested could