similar to: ggplot2 font size problem

Displaying 20 results from an estimated 3000 matches similar to: "ggplot2 font size problem"

2023 Mar 17
1
connect MSSQL server problem
Hi Team,I need to connect two MSSQL servers.?One server ask me to enter user name and password. I can use dbConnect (from DBI package) to connect the serve.Another one do not ask me credential to access the serve. But when I remove UID and PWD, it doesn't work. Then I tried to use my PC log in credential for UID and PWD, it still doesn't allow me to access. The error message:?Error:
2008 Oct 02
1
RBloomberg to get dividend
I try to use RBloomberg to get the dividend for IBM. However, blpGetData(conn, "IBM EQUITY", field="EQY_DVD_HIST_ALL", start=as.chron("1980-01-01")) doesn't work. It returns EQY_DVD_HIST_ALL (10/02/08 14:46:36) NA I have to used blpGetData(conn, "IBM EQUITY", "EQY_DVD_SH_12M_NET",
2009 Dec 31
1
ggplot2: How to change font of labels in geom_text
Happy New Year everyone. I have what I hope is a simple-to-answer question. In the code sample below, I'm using a tile plot to plot a continuous measure and overlaying the plot with labels. I need to print the labels in courier, but there appears to be no way to override the default font setting in geom_text. I've scoured the web for clues on how to do this, but found nothing relevant.
2013 Feb 25
1
ggplot2 Increase font size
Dear all, I am using the code as below   tdm <- melt(matrixToPlot)    p<- ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value))) +                   labs(x = "Mz", y = "T", fill = "D") +                   geom_raster(alpha=1) +                   scale_fill_discrete(h.start=1) +                   scale_x_continuous(expand = c(0, 0)) +                  
2012 Sep 30
2
adjust font in ggplot2 to LaTeX document
Hi, how can i adjust the font in a ggplot2 qplot so that it will look similar to the LaTeX font? Computer Modern Sans Serif in the same size would be nice. My output device is ggsave(filename="test.pdf", width=5.5, height=3, dpi=300) and i will include the graphic with 5.5 inch in LaTeX. I found some pages about that topic but all solutions that i found have been very complicate
2008 May 12
2
ggplot2: font size mismatch for pdf output
Hi In the following, the graph I see on the screen and the .png output coincide. However, in the .pdf file, the fonts seem to be scaled fairly larger, resulting in the label for the top legend disappearing. Is this an infelicity or bug, or is there something I've missed? More generally, how do I control the size of fonts used in legends and axis labels? library(car) library(ggplot2) qp
2012 Jun 05
0
ggplot2, grid graphics, x11(), windows(), and device fonts
I am trying to use ggplot() to produce a graph and am getting warnings that I don't understand. This is happening from within RStudio, but also happens if I start Windows R GUI. Can anyone help me understand the warning and how to make sure the right fonts are designated? The relevant code fragment is: x11(width=7, height = 7) library(ggplot2) # Now some Distance ~ Time plots p2 <-
2008 Jul 03
1
ggplot2: scaling and tick mark of x-axis
Dear list, i am trying to plot data in a way like this: Date<-seq(as.Date("2006-08-29"), as.Date("2007-08-28"), by="2 weeks") var<-rnorm(27, 10000, 2500) err<-rnorm(27, 3000, 1000) df<-data.frame(cbind(Date, var, err)) library(ggplot2) g <- ggplot(df, aes(x=Date, y=var, min=(var - err), max=(var + err))) g1 <- g + geom_line() + geom_point() +
2010 Dec 30
4
pdf() Export Problem: Circles Interpreted as Fonts from ggplot2 Graphics
Good Evening: I am putting together a large report with plots created in R, V 2.12.0. Most of the plots are created using ggplot2 V0.8.9. I use R's pdf() command to export the plot to a pdf file. I am exporting the plots and attempting to edit the title text in?Inkscape?primarily because ggplot2 does not support superscript or subscript formatting in the title text. For the report I am
2010 Feb 14
2
Problems with boxplot in ggplot2:qplot
Dataframe closed contains balances of closed accounts: each row has month of closure (Date-type column month) and latest balance. I would like to plot by-month distributions of balances. A qplot call below produces several warnings and no output. Can anyone help? Thank you. PS. A really basic task, very similar to the examples on p. 71 of the ggplot2 book, apart from a Date grouping column; I
2010 Apr 07
1
ggplot2, density barplot and geom_point layer
Hi, Please consider the example below. How can I manage to overlay the points the way I want in the second case? Thanks, Joh library(ggplot2) # Modify data to match "real" case myDiamonds <- diamonds myDiamonds[["clarity"]] <- as.character(myDiamonds[["clarity"]]) myDiamonds[myDiamonds[["clarity"]]=="I1","clarity"] <- 1
2011 Dec 23
1
ggplot2: behaviour with empty datasets
For example, prepare like this > df.0 <- data.frame(x = 0, y = 0, note = "1") > df.1 <- subset(df.0, note == "1") > df.2 <- subset(df.0, note == "2") Then a call to > ggplot() + aes(x = x, y = y) + > geom_point(data = df.1) + geom_point(data = df.2) produces the error > Error in eval(expr, envir, enclos) : object 'x' not found
2012 Aug 27
2
Font size in geom_dl (using ggplot2)
Hey everyone, I am an R-newby... so sorry for bothering you with simple-to-solve questions;) I have the following issue: trying to add labels to my scatterplots (with geom_dl in ggplot2). Everything works fine, but after checking every resource I do not find a way to change the font size of my labels. I tried size, cex, fontsize at every position... but it always stays the same. ggplot()+
2009 Jul 23
2
param:qsec in ggplot2
Hii i have been trying to do a scatter plot with ggplot2, like the plot 6 here (http://had.co.nz/ggplot2/geom_point.html) .. where the points size vary with values > p + geom_point(aes <http://had.co.nz/ggplot2/aes.html>(size = qsec)) but am not sure how to setup the parameter - qsec could anyone please give some pointers on how to define that thanks Mo. [[alternative HTML
2008 Sep 10
1
ggplot2: edge outlines on points
The graphic design elements in ggplot2 are so well done for color graphics. Thank you! For BW publication graphs, there are a few options I would like to be able to tweak, but can't seem to find the grob handles necessary OR the right plotting strategy. Here's one problem I've been puzzling over: Q> How do you plot points with a grey fill and a black outline around the
2008 Sep 22
2
adding layers in ggplot2 (data and code included)
Here is some sample data: mydata <- read.table(textConnection("Est Group Tri 0 0 4.639644 1 0 4.579189 2 0 4.590714 0 1 4.443696 1 1 4.588243 2 1 4.650505 0 2 4.296608 1 2 4.826036 2 2 4.765386"),header=TRUE); closeAllConnections(); I can form two plots,
2008 Jan 11
1
ggplot2, coord_equal and aspect ratio
Hi everyone, Hi Hadley, I am a heavy user of coord_equal() in ggplot2 since most of my data is spatial, on x,y coordinates. Everything works. However by enforcing an aspect ratio of 1 for the plotting region, coord_equal() usually wastes a lot of space if the region of interest is not a perfect square. For example: x=runif(10) a=data.frame(x=x*3,y=x) ggplot(data=a, aes(x=x,y=y)) +
2009 Jan 07
1
Problem with ggplot2 - facet_wrap and boxplot
Hello R users and Hadley, Back again with a little problem in ggplot2 =o) (ggplot 0.8.1, R 2.8.0) Here the problem : library(ggplot2) df <- data.frame(id = 1:100, x1 = c(rnorm(50), rnorm(50, 1)), x2 = c(rnorm(50), rnorm(50, 1.5)), x3 = c(rnorm(50, 0.5), rnorm(50, 2.5)), group = as.factor(rep(c("a", "b"), each = 50))) df.melt <- melt(df, id = c("id",
2012 Mar 20
1
passing xlim to coord_map in ggplot2
I'm sure this is smack-head moment, but I haven't been able to find an example of this on Nabble or SO, so thought I'd ask. This works: michigan <- map_data('county', 'michigan') mich_points <- data.frame(x = rnorm(n = 200, median(michigan[,1]), 0.75), y = rnorm(n = 200, median(michigan[,2]), 0.75)) ggplot() + geom_path(aes(long, lat, group = group), data =
2009 Jul 23
1
ggplot2 : commands on one line vs two lines.
I have just started using ggplot2 and I seem to be doing something stupid in writing ggplot2 commands on more than one line. In the example below the commands on one line are working fine, but as soon as I put them on two lines I get an error. Can any one point out what I am doing wrong? It must be something blindingly simple. Thanks Example