0:01
There are a bajillion different charts available  in software like excel or numbers or sheets or  
Hay un trillón de gráficos disponibles en software como Excel o Numbers o Sheets o
0:05
mathematica or plotly, but I recently discovered  that pretty much all plotting apps - as far as I  
Mathematica o Plotly, pero hace poco descubrí que a casi todas las aplicaciones de gráficos - hasta
0:09
can tell - are missing an incredibly basic type of  chart! Consider this video my attempt to convince  
donde entiendo - ¡les hace falta un tipo de gráfico muy básico! Este video es mi intento de convencerte
0:15
you it's a scandal these charts are missing,  and my attempt to convince software developers  
de que es un escándalo la falta de estos gráficos, y de convencer a los desarrolladores
0:18
to add them into their plotting software. Ok, so suppose you want to compare the climates  
de añadirlos a su software de gráficos. Entonces, supongamos que quieres comparar los climas
0:22
of London, England; London, Ontario; and London,  Kentucky. Here's a table showing the average and  
de Londres, Inglaterra; Londres, Ontario; y Londres, Kentucky. Esta tabla muestra el promedio y

0:26
seasonal high and low temperatures for each  London. But tables are boring. If you wanted  
el minimo y máximo de temperaturas por cada Londres. Pero las tablas son aburridas. Si quisieras
0:30
to plot this data by hand, you might imagine  using a chart like this to show the range of  
graficar estos datos a mano, tal vez imaginas usar un gráfico como este para el rango de
0:34
temperatures and allow you to see at a glance that  the climate in London England is less extreme than  
temperaturas, y poder ver de inmediato que el clima en Londres, Inglaterra es menos extremo que el de
0:38
the other Londons, (which are each similarly  variable but with Ontario shifted colder) - a  
las otras Londres, (que también son variables pero con Ontario desviado más al frío) - un
0:39
bar chart makes more sense than, say,  a point chart since the temperatures in  
gráfico de barras tiene más sentido que, por ejemplo, uno de puntos, ya que las
0:42
these Londons can by definition be in between  the minimum and maximum ones in our table. 
temperaturas de las Londres sólo pueden estar entre el mínimo y máximo de nuestra tabla.
0:47
The problem is, you can't easily  make a chart like this on a computer. 
El problema es que no hay forma fácil de hacer un gráfico así en una computadora.
0:50
You can get close with an area chart,  which plots the temperatures correctly,  
Te puedes acercar con un gráfico de área, que marca las temperaturas correctas,
0:53
adds nice shading in between them, but also fills  the area all the way down (or up) to the X axis,  
y añade sombreado agradable en medio, pero también rellena toda el área del eje X de arriba abajo,
0:57
which isn't right. You can get around the  filling problem by creating a new table of  
que no es correcto. Puedes evadir el problema del relleno al crear una nueva tabla de
1:00
the differences between the temperatures  and plotting that as a stacked area  
las diferencias entre temperaturas, y trazarlas como un gráfico de áreas
1:03
chart... oops - we need to remove the fill from  the lowest value - but it still doesn't make  
apiladas... ups - necesitamos quitar el relleno del valor más bajo - pero aún así no tiene
1:05
sense to use a chart that draws connecting  lines in a situation like this where we're  
sentido usar un gráfico que traza líneas conectadas en una situación como esta, donde
1:08
talking about discrete geographic locations. You can also get close with a stacked bar chart  
hablamos de ubicaciones geográficas discretas. También se acerca un gráfico de barras apiladas
1:12
(or "stacked column chart" depending on whether  you think bars can be both horizontal and vertical  
(o "columnas apiladas" dependiendo si las llamas barras horizontales o verticales
1:16
or if you think vertical bars have to be called  columns...) anyway, a stacked bar-column chart  
o si crees que las verticales se llaman columnas...) en fin, un gráfico de barras-columnas apiladas
1:20
separates out the cities correctly but incorrectly  adds the temperatures together - hence,  
separa las correctamente pero suma las temperaturas de forma incorrecta - por lo tanto,
1:24
"stacked" - the columns are stacked together,  appropriate to the name, but it's not what we  
"apiladas" - las columnas se apilan juntas, como indica su nombre, pero no es esto lo que
1:28
want. You can get around the stacking problem by  again creating a table of the differences between  
queremos. Puedes evitar el problema del apilamiento al crear una tabla de las diferencias entre
1:32
the temperatures, but then it still fills down  to zero even if you want the bars to start at  
las temperaturas, pero aún así rellena hasta el cero aunque quieras que las barras comiencen
1:35
some other number, and the negative values are  a total nightmare" since stacked column charts  
en otro número, y los valores negativos son toda una pesadilla, ya que los gráficos de columnas
1:39
by default plot things from zero and if you enter a negative number for the first value to try to  
apiladas trazan a partir del cero, y si ingresas un número negativo como primer valor para tratar
1:43
get it to start below zero, it plots that amount  below zero, but then measures the positive numbers  
que baje del cero, traza esa cantidad bajo cero, pero luego mide los números positicos a partir
1:47
up from zero anyway and not from the negative number - this is because stacked column charts are  
del cero de todos modos y no del número negativo - esto es porque estos gráficos están diseñados
1:51
meant for things like keeping inflows and outflows  separate, like, you bought 5 cats and sold 2, and  
para cosas como mantener flujos de entrada y salida separados; como si compras 5 gatos y vendes 5, y
1:56
you want the total length of bars to represent the  total number of transactions (7) and not the final  
quieres que la longitud de las barras represente el número total de transacciones (7) y no el número
2:00
number of cats (3). The only reasonable way I've  found to deal with negative numbers in stacked  
final de gatos (3). La única solución razonable que he encontrado para los números negativos en
2:04
column charts is just to add a big number to ALL  the temperatures so they're not negative anymore,  
columnas apiladas es sumar una cifra grande a TODAS las temperaturas para que ya no sean negativas,
2:08
make the chart, then photoshop the y axis labels  to remove the big number. Which is ridiculous. 
hacer el gráfico, y luego editar las etiquetas del eje Y para restarla. Lo que es ridículo.
2:13
What we're actually looking for is something  called a "range chart" where you enter the  
Lo que en verdad buscamos se llama un "gráfico de rango" en el que ingresas los valores
2:16
top and bottom values of the range and then  the program draws that for you. Specifically,  
superior e inferior del rango, y luego el programa los traza por ti. Específicamente,
2:20
we want a "stacked range bar chart" where you  can enter multiple numbers, including negative  
queremos un "gráfico de rangos de barras apiladas" para ingresar múltiples números, incluyendo
2:24
numbers, and then draw bars between them. Is  that too much to ask? I guess, I guess it is. 
números negativos, y trazar barras entre ellos. ¿Es mucho pedir? Tal vez, tal vez lo sea.
2:30
ps here are a few more examples of data that  really would benefit from being visualized  
P.S.: estos son más ejemplos de datos que se beneficiarían si se pudieran visualizar
2:33
with a stacked range bar chart but first, a big  thank you to my Patreon supporters who help make  
con un gráfico de rangos de barras apiladas, pero primero gracias a mis seguidores en Patreon que
2:50
these videos possible - please consider supporting  MinutePhysics at patreon.com/minutephysics. Now,  
hacen estos videos posibles - por favor consideren apoyar a MinutePhysics en patreon.com/minutephysics.
2:51
back to the benefits of stacked range bar charts!  Really, any chart where the x axis is a discrete  
Volviendo a las ventajas de los gráficos de rangos de barras apiladas. Cualquier gráfico donde el eje X
2:55
set of things and the y axis is a range that can  go below and above zero is a candidate for this  
es una lista de objetos y el eje Y es un rango que puede subir o bajar de cero es candidato para este
2:59
type of chart. Like, if you wanted to plot the  range of latitudes of each of the continents,  
tipo de gráfico. Como si quieres trazar el rango de latitudes de cada continentel, o mostrar
3:03
or show when twilight, dusk, and daytime are  at a given location. Or compare percentiles  
a qué hora son el amanecer y atardecer en una ubicación específica. O comparar porcentajes
3:07
for student grades in different classes. Or  the local climate: plotting the average daily  
para calificaciones de estudiantes en clases distintas. O el clima local: trazar el mínimo promedio
3:11
low and average daily high temperatures for  each month along with the average monthly low  
y máximo promedio de temperaturas por mes, junto con el mínimo y máximo promedio mensual 
3:15
and high temperatures and the record monthly low  and high temperatures across a year gives you a  
de las temperaturas, y el registro de mínimos y máximos de temperatura en el año resulta en una
3:18
picture of the seasonal variation in temperature  for a particular location. Yes, you can do this  
imagen de la variación estacional en temperatura para cada ubicación particular. Sí, se puede hacer
3:22
with a stacked area chart, but that makes less  sense than stacked columns because area implies  
con un gráfico de áreas apiladas, pero tiene menos sentido que las columnas porque área implica
3:26
some sort of continuity when to create the data  you are literally binning or averaging by month.
alguna continuidad, cuando al crear los datos literalmente estás descartando o promediando por mes.