Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9141181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:36:42+00:00 2026-06-17T09:36:42+00:00

I have a ggplot code and I wanted to change the size of labels

  • 0

I have a ggplot code and I wanted to change the size of labels for x-axis and y-axis.

the code:

df.m <- melt(df, names(df)[2:3], names(df)[1])
df.m$Results <- factor(df.m$Results)
df.m$HMn25_30.h <- strptime(as.character(df.m$HMn25_30.h), format = "%Y-%m-%d %H:%M:%S")
p <- ggplot(df.m, aes(x = HMn25_30.h, y = value, group = variable, color = variable))
p <- p + scale_shape_manual(values=c(20,22))
p <- p + geom_point(aes(shape = Results), cex=4, color= "blue3")
p <- p + geom_line(size=.8)
p <- p + theme(axis.text.x = element_text(angle = 90, hjust = 1, size=13,color="darkred"))
p <- p + scale_color_manual(values=c("Red"))
p <- p + ylim(-1,8)
p <- p + xlab('Date and Time') 
p <- p + ylab('Temperature') 
p <- p + ggtitle("Temporal Outliers of Node 25 ") + theme(plot.title = element_text(lineheight=3, face="bold", color="black", size=29))
p

In other words “Temperature” and “Date and Time” font and size should be changed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:36:43+00:00Added an answer on June 17, 2026 at 9:36 am

    You can apply different options of theme :

    p <- ggplot(df.m, aes(x = HMn25_30.h, y = value, group = variable, color = variable))
        p <- p + scale_shape_manual(values=c(20,22))
        p <- p + geom_point(aes(shape = Results), cex=4, color= "blue3")
        p <- p + geom_line(size=.8)
        p <- p + theme(axis.text.x = element_text(angle = 90, hjust = 1, size=13,color="darkred"))
        p <- p + scale_color_manual(values=c("Red"))
        p <- p + ylim(-1,8)
        p <- p + theme_bw()
        p <- p + xlab('Date and Time') 
        p <- p + ylab('Temprature') 
        p <- p + ggtitle("Temporal Outliers of Node 25 ") + theme(plot.title = element_text(lineheight=3, face="bold", color="black", size=29))
        p <- p + labs(x = "Date-Time ", y = "Temprature  ")
        p <- p + theme(axis.title.y = element_text(size = rel(1.8), angle = 90))
        p <- p + theme(axis.title.x = element_text(size = rel(1.8), angle = 00))
        p
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a code to plot multiple variables and factor in ggplot. I wanted
I'm fairly new to ggplot. I have made a bumpplot using code posted below.
I have a barplot() with the following code: mp<-barplot(data.30.s$mean.rev,names.arg=data.30.s$dma.name, main=Mean, ylab=Mean,las=2, cex.names=.5) abline(h=mean(data.30.s$mean.rev)) lines(data.30.c$mean.rev,col=34)
I have following R code: ggplot(data=curve,aes(x = expected, y=result/games)) + geom_point(aes(x=-expected, colour=games)) + stat_function(fun=funx,
I have generated the following plot using the R code that follows it: ggplot(lengths,
I am trying to create facet grid with the following code p <- ggplot(melted,aes(factor(country)))
Another ggplot legend question! I have a dataset of the form test <- data.frame(
I have simple histogram, but can't adjust the binwidth: qplot(factor(size_class),data=mydf,geom=histogram,binwidth = 0.01) size_class is
I have a series of ggplot graphs that I'm repeating with a few small
I have a nearly-boxplot like jitter-plot: dt <- rbind(se,cb,cb.se) qplot(ds, size, data=dt, geom="jitter", colour=root,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.