¿Cómo se hace solo la etiqueta de X-Lab ITALLICS y no la etiqueta Y-Lab también?(en r)

StackOverflow https://stackoverflow.com/questions/8975797

Pregunta

¿Cómo realiza la etiqueta de la etiqueta X-Lab y no la etiqueta Y-Lab también?El único El comando que puedo encontrar (Font.lab= 3) hace que las etiquetas de X-Lab y Y-Lab.Estoy creando terremotes en R que tienen nombres específicos en el eje X e Y.

barplot(y, main="Main Title",
    names=c("a", "b", "c"),
    xlab="Text that I would like to be in italics",
    ylab="Text that I do NOT want to be in italics",
    font.lab=3)

¿Fue útil?

Solución

 barplot(y, main="Main Title",
     names=c("a", "b", "c"),
     xlab=expression(italic("Text that I would like to be in italics")),
     ylab="Text that I do NOT want to be in italics")

Esa es una llamada de trazador:

?plotmath

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top