I was trying to use the x-axis options, to specify the lower and upper limits of a graph.
I was doing this from the Describe > Use Graph dialogue.
What I had was an inventory graph from the climatic menu. I show it below.
Could we have the Options enabled from that dialogue - perhaps that's part of the problem?
Anyway I decided to use them from the Use Graph dialogue.
I went to the Options and x-axis.
I notice that it (and y-axis) has "Discrete" as the default and there are almost no options then. There is no label for this field. I looked at Date and also there are no real options.
I had a look at Date type and there are also almost no options there. I wonder why not?
Anyway mine was continuous so I used that.
I changed the lower limit to 1940. and pressed Return and ran. It ran fine, but ignored my change.
I looked at the code and saw that it had ignored that change:
code generated by the dialog Use Graph
last_graph <- InstatDataObject$get_graphs(data_name="data_RDS", graph_name="last_graph") + theme_grey()
InstatDataObject$add_graph(data_name="data_RDS", graph=last_graph, graph_name="last_graph")
InstatDataObject$get_graphs(graph_name="last_graph", data_name="data_RDS")
So I returned to the dialogue:
1) It was back on discrete. As though I had changed nothing.
2) I changed (again) to continuous and it had not recalled the xaxis change
3) I now included both the lower and upper limits
Now it noticed me and gave an error - see below.
4) When I returned yet again it was still back on Discrete, but had remembered my axis changes.
The error is as follows:
Error running R command(s)
External component has thrown an exception.
The error occurred in attempting to run the following R command(s):
last_graph <- InstatDataObject$get_graphs(data_name="data_RDS", graph_name="last_graph") + theme_grey() + ggplot2::scale_x_continuous(limits=c(1940, 2017)) + ggplot2::scale_x_continuous(limits=c(1940, 2017))
InstatDataObject$add_graph(data_name="data_RDS", graph=last_graph, graph_name="last_graph")
InstatDataObject$get_graphs(graph_name="last_graph", data_name="data_RDS")
OK
From the code it looks close and I guess should be easy to fix. With mu feeble R I wonder why the limits are given twice - and I assume there is a reason for the double colons?
I was trying to use the x-axis options, to specify the lower and upper limits of a graph. I was doing this from the Describe > Use Graph dialogue. What I had was an inventory graph from the climatic menu. I show it below. Could we have the Options enabled from that dialogue - perhaps that's part of the problem?
Anyway I decided to use them from the Use Graph dialogue. I went to the Options and x-axis.
code generated by the dialog Use Graph last_graph <- InstatDataObject$get_graphs(data_name="data_RDS", graph_name="last_graph") + theme_grey() InstatDataObject$add_graph(data_name="data_RDS", graph=last_graph, graph_name="last_graph") InstatDataObject$get_graphs(graph_name="last_graph", data_name="data_RDS")
So I returned to the dialogue: 1) It was back on discrete. As though I had changed nothing. 2) I changed (again) to continuous and it had not recalled the xaxis change 3) I now included both the lower and upper limits
Now it noticed me and gave an error - see below. 4) When I returned yet again it was still back on Discrete, but had remembered my axis changes.
The error is as follows:
Error running R command(s)
External component has thrown an exception. The error occurred in attempting to run the following R command(s): last_graph <- InstatDataObject$get_graphs(data_name="data_RDS", graph_name="last_graph") + theme_grey() + ggplot2::scale_x_continuous(limits=c(1940, 2017)) + ggplot2::scale_x_continuous(limits=c(1940, 2017)) InstatDataObject$add_graph(data_name="data_RDS", graph=last_graph, graph_name="last_graph") InstatDataObject$get_graphs(graph_name="last_graph", data_name="data_RDS")
OK
From the code it looks close and I guess should be easy to fix. With mu feeble R I wonder why the limits are given twice - and I assume there is a reason for the double colons?