{"id":3565,"date":"2023-03-08T16:29:39","date_gmt":"2023-03-08T16:29:39","guid":{"rendered":"https:\/\/ricovictor.com\/?p=3565"},"modified":"2023-03-08T19:04:11","modified_gmt":"2023-03-08T19:04:11","slug":"graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15","status":"publish","type":"post","link":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/","title":{"rendered":"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3565\" class=\"elementor elementor-3565\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-276e4c3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"276e4c3\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7b7f4c27\" data-id=\"7b7f4c27\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2c7e6154 elementor-widget elementor-widget-text-editor\" data-id=\"2c7e6154\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Aqu\u00ed veremos como hacer Gr\u00e1ficos de doble eje en R, por ejemplo si queremos en un mismo gr\u00e1fico insertar dos series con escalas diferentes. Una representaci\u00f3n de ese estilo podr\u00eda ser insertar en un mismo gr\u00e1fico los datos del PIB y las tasas de inter\u00e9s.<\/p><p>En el video veremos 2 ejemplos, uno combinando un gr\u00e1fico de linea con uno de barras y otros donde habr\u00e1 dos de l\u00ednea.<strong>( Bajo el video tienes los archivos y c\u00f3digo que se usan en el tutorial aqu\u00ed)<\/strong><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7e202f9c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7e202f9c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1f5f5a58\" data-id=\"1f5f5a58\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-665ab052 elementor-widget elementor-widget-video\" data-id=\"665ab052\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/Bwt-TyhKXO0&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-424d1079 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"424d1079\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3c33ff7\" data-id=\"3c33ff7\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-591c7901 elementor-widget elementor-widget-text-editor\" data-id=\"591c7901\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><!-- wp:paragraph --><\/p><p>DATOS Y C\u00d3DIGO EN R<\/p><p><strong>\u00a0<\/strong><\/p><p><!-- \/wp:paragraph --><\/p><p><!-- wp:file {\"id\":3517,\"href\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_argentina.csv\"} --><\/p><div class=\"wp-block-file\"><a id=\"wp-block-file--media-9aa419ac-a999-476f-bb43-b8ce0227d8c0\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_argentina.csv\">pib_per_capita_argentina<\/a><a class=\"wp-block-file__button wp-element-button\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_argentina.csv\" download=\"\" aria-describedby=\"wp-block-file--media-9aa419ac-a999-476f-bb43-b8ce0227d8c0\">Descarga<\/a><\/div><p><!-- \/wp:file --><\/p><p><!-- wp:file {\"id\":3518,\"href\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_chile.csv\"} --><\/p><div class=\"wp-block-file\"><a id=\"wp-block-file--media-57bb9a9a-ff83-4655-a821-05de2aca6aa4\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_chile.csv\">pib_per_capita_chile<\/a><a class=\"wp-block-file__button wp-element-button\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_chile.csv\" download=\"\" aria-describedby=\"wp-block-file--media-57bb9a9a-ff83-4655-a821-05de2aca6aa4\">Descarga<\/a><\/div><p><!-- \/wp:file --><\/p><p><!-- wp:file {\"id\":3519,\"href\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_espana.csv\"} --><\/p><div class=\"wp-block-file\"><a id=\"wp-block-file--media-6b207124-5e7f-45f7-b1eb-8a36d7132a1e\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_espana.csv\">pib_per_capita_espa\u00f1a<\/a><a class=\"wp-block-file__button wp-element-button\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_espana.csv\" download=\"\" aria-describedby=\"wp-block-file--media-6b207124-5e7f-45f7-b1eb-8a36d7132a1e\">Descarga<\/a><\/div><p><!-- \/wp:file --><\/p><p><!-- wp:file {\"id\":3520,\"href\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_mexico.csv\"} --><\/p><div class=\"wp-block-file\"><a id=\"wp-block-file--media-637ffdd5-425a-4a0a-bb81-c74c99643332\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_mexico.csv\">pib_per_capita_mexico<\/a><a class=\"wp-block-file__button wp-element-button\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/pib_per_capita_mexico.csv\" download=\"\" aria-describedby=\"wp-block-file--media-637ffdd5-425a-4a0a-bb81-c74c99643332\">Descarga<\/a><\/div><p><!-- \/wp:file --><\/p><p><!-- wp:file {\"id\":3521,\"href\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/poblacion_mexico.csv\"} --><\/p><div class=\"wp-block-file\"><a id=\"wp-block-file--media-4fc2db42-1886-4f5e-8396-2f44fad4d952\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/poblacion_mexico.csv\">poblacion_mexico<\/a><a class=\"wp-block-file__button wp-element-button\" href=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/poblacion_mexico.csv\" download=\"\" aria-describedby=\"wp-block-file--media-4fc2db42-1886-4f5e-8396-2f44fad4d952\">Descarga<\/a><\/div><p><!-- \/wp:embed --><\/p><p><!-- wp:code --><\/p><pre class=\"wp-block-code\"><br \/><code><\/code><\/pre><p><!-- \/wp:code --><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-370187b7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"370187b7\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2566a381\" data-id=\"2566a381\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-535f559a elementor-widget elementor-widget-text-editor\" data-id=\"535f559a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>#COMO CREAR GRAFICOS DE DOS EJES<\/p><p># vAMOS A HACER DOS EJEMPLOS<\/p><p>#1. DOS EJES CON DOS GRAFICOS DE LINEA<br \/>#2. DOS EJES CON UN GRAFICO DE LINEA Y OTRO DE BARRAS<\/p><p># Descargamos los datos de videos anteriores sobre PIB y tambi\u00e9n nuevos<br \/>#de poblacion<\/p><p>#pib per capita espa\u00f1a en datacommons<\/p><p>pib_mexico_per &lt;- read.csv(\u00abC:\\\\Users\\\\Victor-PC\\\\Desktop\\\\ECONOMIA_HISPANA\\\\pib_per_capita_mexico.csv\u00bb,header=TRUE, stringsAsFactors=FALSE)<\/p><p><br \/>pib_espa\u00f1a_per &lt;- read.csv(\u00abC:\\\\Users\\\\Victor-PC\\\\Desktop\\\\ECONOMIA_HISPANA\\\\pib_per_capita_espa\u00f1a.csv\u00bb,header=TRUE, stringsAsFactors=FALSE)<\/p><p><br \/>pib_argentina_per &lt;- read.csv(\u00abC:\\\\Users\\\\Victor-PC\\\\Desktop\\\\ECONOMIA_HISPANA\\\\pib_per_capita_argentina.csv\u00bb,header=TRUE, stringsAsFactors=FALSE)<\/p><p><br \/>pib_chile_per &lt;- read.csv(\u00abC:\\\\Users\\\\Victor-PC\\\\Desktop\\\\ECONOMIA_HISPANA\\\\pib_per_capita_chile.csv\u00bb,header=TRUE, stringsAsFactors=FALSE)<\/p><p>\u00a0<\/p><p><br \/>PIB_ESPA\u00d1A &lt;- head(pib_espa\u00f1a_per$PIB.per.c\u00c3.pita)[1]<br \/>PIB_ESPA\u00d1A<\/p><p>PIB_ARGENTINA &lt;- head(pib_argentina_per$PIB.per.c\u00c3.pita)[1]<br \/>PIB_ARGENTINA<\/p><p>PIB_CHILE &lt;- head(pib_chile_per$PIB.per.c\u00c3.pita)[1]<br \/>PIB_CHILE<\/p><p>PIB_MEXICO &lt;- head(pib_mexico_per$PIB.per.c\u00c3.pita)[1]<br \/>PIB_MEXICO<\/p><p>#paises &lt;- c ( \u00abESPA\u00d1A\u00bb,\u00bbCHILE\u00bb,\u00bbARGENTINA\u00bb,\u00bbMEXICO\u00bb)<\/p><p>PIB_paises&lt;- c(PIB_ESPA\u00d1A,PIB_CHILE,PIB_ARGENTINA,PIB_MEXICO)<\/p><p>#rownames(PIB_paises) &lt;- c(\u00abESPA\u00d1A\u00bb,\u00bbCHILE\u00bb,\u00bbARGENTINA\u00bb,\u00bbMEXICO\u00bb)<br \/>PIB_paises<\/p><p><br \/>#datos poblacion mexico<\/p><p>poblacion_mexico &lt;- read.csv(\u00abC:\\\\Users\\\\Victor-PC\\\\Desktop\\\\ECONOMIA_HISPANA\\\\poblacion_mexico.csv\u00bb,header=TRUE, stringsAsFactors=FALSE)<\/p><p>plot(poblacion_mexico,type=\u00bbl\u00bb)<\/p><p><br \/>#\u26653 pasos<\/p><p>#1 Grafico 1 <br \/>#2 par para unir <br \/>#3 graficos 2 quitando etiquetas con axes<br \/>#4 nuevo eje<\/p><p>plot(pib_mexico_per,type=\u00bbl\u00bb)<\/p><p># Ejemplo numero 1 = dos graficos de linea<\/p><p><br \/>#\u00bb1 PIB mexico<br \/># poblacion<\/p><p><br \/>plot(pib_mexico_per,type=\u00bbl\u00bb ,main = \u00abPIB PER C\u00c1PITA y POBLACION\u00bb,<br \/>col = \u00abred\u00bb, lwd = 2,lty = 1,ylab=\u00bbPIB PER CAPITA\u00bb)<\/p><p>par(new=TRUE) #enlace<\/p><p>plot(poblacion_mexico,type=\u00bbl\u00bb,axes=FALSE, ylab=\u00bb\u00bb,col=\u00bbblue\u00bb,lwd=2,lty=2)<\/p><p>axis(4)<\/p><p><br \/>#ejemplo numero 2<\/p><p>#graficos de barras del PIB 4 paises ( ultimo valor)<br \/>#evolucion pib argentina<\/p><p>barplot(PIB_paises, main = \u00abPIB PER C\u00c1PITA\u00bb,<br \/>col = rainbow(4))<\/p><p>par(new=TRUE)<\/p><p>plot(pib_argentina_per,type=\u00bbl\u00bb,axes=FALSE,col=\u00bbblack\u00bb,lwd = 2,lty = 1,<br \/>xlab = \u00ab\u00bb, ylab = \u00ab\u00bb)<\/p><p>axis(4)<\/p><p>mtext(\u00abPib Argentina\u00bb, side = 4, col= \u00abred\u00bb)<\/p><p># etiquetas<\/p><p>barplot(PIB_paises, main = \u00abPIB PER C\u00c1PITA\u00bb,<br \/>col = rainbow(4),names.arg = c(\u00abESPA\u00d1A\u00bb,\u00bbCHILE\u00bb,\u00bbARGENTINA\u00bb,\u00bbMEXICO\u00bb))<\/p><p>par(new=TRUE)<\/p><p>plot(pib_argentina_per,type=\u00bbl\u00bb,axes=FALSE,col=\u00bbblack\u00bb,lwd = 2,lty = 1,<br \/>xlab = \u00ab\u00bb, ylab = \u00ab\u00bb)<br \/>axis(4)<\/p><p>mtext(\u00abPib Mexico\u00bb, side = 4, col= \u00abred\u00bb)<\/p><p>\u00a0<\/p><p><br \/>barplot(PIB_paises, main = \u00abPIB PER C\u00c1PITA\u00bb,<br \/>col = rainbow(4))<br \/>par(new=TRUE)<br \/>plot(pib_argentina_per,type=\u00bbl\u00bb,axes=FALSE,col=\u00bbblack\u00bb,lwd = 2,lty = 1,<br \/>)<br \/>axis(4)<\/p><p>mtext(\u00abPIB ARGENTINA\u00bb, side = 4, col= \u00abred\u00bb)<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Aqu\u00ed veremos como hacer Gr\u00e1ficos de doble eje en R, por ejemplo si queremos en un mismo gr\u00e1fico insertar dos series con escalas diferentes. Una representaci\u00f3n de ese estilo podr\u00eda ser insertar en un mismo gr\u00e1fico los datos del PIB y las tasas de inter\u00e9s. En el video veremos 2 ejemplos, uno combinando un gr\u00e1fico &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\"> <span class=\"screen-reader-text\">Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15<\/span> Leer m\u00e1s &raquo;<\/a><\/p>\n","protected":false},"author":19,"featured_media":3567,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[13],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"og:description\" content=\"Aqu\u00ed veremos como hacer Gr\u00e1ficos de doble eje en R, por ejemplo si queremos en un mismo gr\u00e1fico insertar dos series con escalas diferentes. Una representaci\u00f3n de ese estilo podr\u00eda ser insertar en un mismo gr\u00e1fico los datos del PIB y las tasas de inter\u00e9s. En el video veremos 2 ejemplos, uno combinando un gr\u00e1fico &hellip; Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 Leer m\u00e1s &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\" \/>\n<meta property=\"og:site_name\" content=\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-08T16:29:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-08T19:04:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/victor-a.rico-30.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Victor A.Rico\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Victor A.Rico\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\"},\"author\":{\"name\":\"Victor A.Rico\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae\"},\"headline\":\"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15\",\"datePublished\":\"2023-03-08T16:29:39+00:00\",\"dateModified\":\"2023-03-08T19:04:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\"},\"wordCount\":588,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ricovictor.com\/#organization\"},\"articleSection\":[\"R studio\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\",\"url\":\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\",\"name\":\"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/#website\"},\"datePublished\":\"2023-03-08T16:29:39+00:00\",\"dateModified\":\"2023-03-08T19:04:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/ricovictor.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ricovictor.com\/#website\",\"url\":\"https:\/\/ricovictor.com\/\",\"name\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/ricovictor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ricovictor.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ricovictor.com\/#organization\",\"name\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"url\":\"https:\/\/ricovictor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png\",\"contentUrl\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png\",\"width\":1402,\"height\":474,\"caption\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\"},\"image\":{\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae\",\"name\":\"Victor A.Rico\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g\",\"caption\":\"Victor A.Rico\"},\"url\":\"https:\/\/ricovictor.com\/index.php\/author\/granada_26_wp\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/","og_locale":"es_ES","og_type":"article","og_title":"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","og_description":"Aqu\u00ed veremos como hacer Gr\u00e1ficos de doble eje en R, por ejemplo si queremos en un mismo gr\u00e1fico insertar dos series con escalas diferentes. Una representaci\u00f3n de ese estilo podr\u00eda ser insertar en un mismo gr\u00e1fico los datos del PIB y las tasas de inter\u00e9s. En el video veremos 2 ejemplos, uno combinando un gr\u00e1fico &hellip; Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 Leer m\u00e1s &raquo;","og_url":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/","og_site_name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","article_published_time":"2023-03-08T16:29:39+00:00","article_modified_time":"2023-03-08T19:04:11+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2023\/03\/victor-a.rico-30.jpg","type":"image\/jpeg"}],"author":"Victor A.Rico","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Victor A.Rico","Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#article","isPartOf":{"@id":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/"},"author":{"name":"Victor A.Rico","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae"},"headline":"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15","datePublished":"2023-03-08T16:29:39+00:00","dateModified":"2023-03-08T19:04:11+00:00","mainEntityOfPage":{"@id":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/"},"wordCount":588,"commentCount":0,"publisher":{"@id":"https:\/\/ricovictor.com\/#organization"},"articleSection":["R studio"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/","url":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/","name":"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","isPartOf":{"@id":"https:\/\/ricovictor.com\/#website"},"datePublished":"2023-03-08T16:29:39+00:00","dateModified":"2023-03-08T19:04:11+00:00","breadcrumb":{"@id":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ricovictor.com\/index.php\/2023\/03\/08\/graficos-de-doble-eje-en-r-aprende-a-programar-en-r-desde-0-clase-15\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/ricovictor.com\/"},{"@type":"ListItem","position":2,"name":"Gr\u00e1ficos de doble EJE en R | Aprende a programar en R desde 0 | Clase 15"}]},{"@type":"WebSite","@id":"https:\/\/ricovictor.com\/#website","url":"https:\/\/ricovictor.com\/","name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","description":"","publisher":{"@id":"https:\/\/ricovictor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ricovictor.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/ricovictor.com\/#organization","name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","url":"https:\/\/ricovictor.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/","url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png","contentUrl":"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png","width":1402,"height":474,"caption":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas"},"image":{"@id":"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae","name":"Victor A.Rico","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g","caption":"Victor A.Rico"},"url":"https:\/\/ricovictor.com\/index.php\/author\/granada_26_wp\/"}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3565"}],"collection":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/comments?post=3565"}],"version-history":[{"count":4,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3565\/revisions"}],"predecessor-version":[{"id":3570,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3565\/revisions\/3570"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media\/3567"}],"wp:attachment":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media?parent=3565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/categories?post=3565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/tags?post=3565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}